Remove currency from URL in catalogue list

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!
tomrose
Posts: 4
Joined: 23 Nov 2021, 10:32

Remove currency from URL in catalogue list

Post by tomrose » 23 Nov 2021, 11:52

The catalogue list add a parameter C=EUR (as well as others).

I would like to get rid of this parameter, as EUR is the only currency available.
For catalogue.filter there is remove-params, but not for catalogue.list.

How can I remove parameters from the generated URL?

Thanks.

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

Re: Remove currency from URL in catalogue list

Post by aimeos » 25 Nov 2021, 13:37

The parameter are only added if you've added the locale/select plugin and used that to switch the language or currency. Otherwise, the language or currency parameters are not part of the URL.

Remove the locale/select plugin and clear all caches.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

MirkoDz
Posts: 4
Joined: 18 Sep 2024, 08:02

Re: Remove currency from URL in catalogue list

Post by MirkoDz » 04 Oct 2024, 10:14

By removing the 'locale/select' plugin, we lose both the language and currency switchers.
Ideally, we'd like to manage locale and currency as route prefixes (e.g., site-url.test/{locale}/{currency}) instead of using query parameters, as the latter isn't an ideal option.
However, there's no straightforward way to configure this. Any suggestions?

Post Reply