Change the main directory

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
РоманАндрейчук
Posts: 18
Joined: 13 Jan 2022, 15:08

Change the main directory

Post by РоманАндрейчук » 13 Jan 2022, 15:17

I have just installed this ecommerce package.
I have a question about routing. How to remove "shop/" from url? There will be only one store on the site.

Example:
http://magic.com/en/shop/Demo-article-5
Should be:
http://magic.com/en/Demo-article-5

I am use Laravel 8*, Aimeos 2021.10*, php 7.3*

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Change the main directory

Post by aimeos » 14 Jan 2022, 08:17

You can remove the "shop" prefix from the generated URLs:
- https://github.com/aimeos/aimeos-larave ... op.php#L19
- https://github.com/aimeos/aimeos-larave ... #L194-L249

The problem is that the Laravel login won't work afterwards and you have to find a workaround for that.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
АндрейЖидилин
Posts: 10
Joined: 27 Apr 2022, 10:00

Re: Change the main directory

Post by АндрейЖидилин » 27 Apr 2022, 10:03

aimeos wrote: 14 Jan 2022, 08:17 You can remove the "shop" prefix from the generated URLs:
- https://github.com/aimeos/aimeos-larave ... op.php#L19
- https://github.com/aimeos/aimeos-larave ... #L194-L249

The problem is that the Laravel login won't work afterwards and you have to find a workaround for that.
Is there any workaround to get around the admin login issue?

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Change the main directory

Post by aimeos » 27 Apr 2022, 10:25

In Laravel 9, it should work because the authentication URL changed to /auth/login
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply