Removing site-Parameter and ID from URL

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Lyshatt
Posts: 8
Joined: 23 Sep 2021, 09:51

Removing site-Parameter and ID from URL

Post by Lyshatt » 05 Nov 2021, 15:00

I am using Laravel Framework Version 7.30.4 with php 7.4 and Aimeos 2021.07 on an Windows Environment.

The URL from one of my articles looks like this: "https://my-shop/en/shop/my-article/0?site=default".
Is it possible to remove the "site"-Parameter from the URL if I only have one shop and don't really need it? I am also thinking about ways to remove the ID from the URL if the article name is unique, so that URLs can be simple and readable like "https://my-shop/en/shop/my-article".

Thank you!

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

Re: Removing site-Parameter and ID from URL

Post by aimeos » 06 Nov 2021, 14:52

In 2020.10 LTS, the site parameter will be added only if necessary as far as I remember.

The position can be disable if you remove the subpart for prev/next navigation in detail view so the following configuration setting only consists of an empty array in your ./config/shop.php:
https://aimeos.org/docs/latest/config/c ... subparts_1
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply