product slugs doesn't switch at language switching

Questions around the TYPO3 integration and plugins
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
rungis
Posts: 14
Joined: 23 Oct 2019, 12:14

product slugs doesn't switch at language switching

Post by rungis » 16 Apr 2020, 12:23

Hi to All,
I have
lang default: host/product/detail/slug
lang en: host/en/product/detail/slug

I want
lang default: host/product/detail/slug
lang en: host/en/product/detail/slug_en

Thanks much.
TYPO3 Version 10.4.12
Aimeos 20.10.5
Webserver nginx/1.15.9
PHP Version 7.3.13-1+ubuntu19.04.1+deb.sury.org+1
Database (Default) MySQL 5.7.28
Operating System Linux 5.0.0-38-generic

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

Re: product slugs doesn't switch at language switching

Post by aimeos » 17 Apr 2020, 08:23

The slug for the new language of the product isn't available when changing the language. This is a minor problem in the product detail view and disappears if the user clicks on any link because then, the links are generated again.

The alternative would be to fetch product and category data in all languages in every request to build the links for language switching with the correct slug in advance but that would be a gigantic overhead for a really small issue.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

rungis
Posts: 14
Joined: 23 Oct 2019, 12:14

Re: product slugs doesn't switch at language switching

Post by rungis » 22 Apr 2020, 09:30

Hi,

1 . It does not seem a minor issue to me. Nothing changes with any clicks on any links. It looks like a BIG FAT problem.

2. I don't understand why we can't just make a one time fetch for a slug from the database at switching lang session in order to construct a proper url.
TYPO3 Version 10.4.12
Aimeos 20.10.5
Webserver nginx/1.15.9
PHP Version 7.3.13-1+ubuntu19.04.1+deb.sury.org+1
Database (Default) MySQL 5.7.28
Operating System Linux 5.0.0-38-generic

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

Re: product slugs doesn't switch at language switching

Post by aimeos » 23 Apr 2020, 07:46

If you build a TYPO3 menu for language selection (recommended way) it doesn't know anything about the Aimeos parameter and if they should to be replaced by something else, so it's hard to do that.

Nevertheless, you can create a language selector that does the lookup in the background if it's that important for you.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply