[REQ] Possible system for slugs
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
[REQ] Possible system for slugs
Is there already a system for using slugs in stead of passing the values in the request parameter of the url?
It would be more interesting for SEO to use
"/category/cat-2" in stead of "/list?f_name=cat-2&f_catid=4562"
It would be more interesting for SEO to use
"/category/cat-2" in stead of "/list?f_name=cat-2&f_catid=4562"
Re: [REQ] Possible system for slugs
In theory yes, but the routing implementation of Laravel 4/5 is buggy and optional parameters cause routes to fail:
https://github.com/laravel/framework/pull/8198
You can only try to work around this by creating a separate page and route that are used when a category is shown and the "f_name" and "f_catid" parameter are mandatory.
https://github.com/laravel/framework/pull/8198
You can only try to work around this by creating a separate page and route that are used when a category is shown and the "f_name" and "f_catid" parameter are mandatory.
Re: [REQ] Possible system for slugs
That was our backup plan
and we'd probably create another table where a slug is saved and where this slug is linked to these parameters ![Lächeln :)](./images/smilies/icon_e_smile.gif)
not the best way to do it, but I don't see a better solution at this time
![Zwinkern ;-)](./images/smilies/icon_e_wink.gif)
![Lächeln :)](./images/smilies/icon_e_smile.gif)
not the best way to do it, but I don't see a better solution at this time
Re: [REQ] Possible system for slugs
You don't need another table. The mshop_catalog and thus the catalog items contains all you need, including the possibility to define URL segments (a.k.a. slugs) as associated texts.Yvler wrote:That was our backup planand we'd probably create another table where a slug is saved and where this slug is linked to these parameters
Re: [REQ] Possible system for slugs
Apologies for digging up an old thread, but anyone know if the referenced URL generator bug is fixed in Laravel 5.1? I'm guessing not looking at the laravel repository but I could be missing it too ![Zwinkern ;)](./images/smilies/icon_e_wink.gif)
![Zwinkern ;)](./images/smilies/icon_e_wink.gif)
Re: [REQ] Possible system for slugs
I'm not aware of that. The buggy behavior is immanent in the router implementation and Tylor had no idea how to fix that without breaking the rest.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
![Image](https://aimeos.org/fileadmin/aimeos.org/icons/star.png)