frontends
frontends copied to clipboard
Language switch should handle sub pages correctly
Describe the feature
Switching the language on sub pages (e.g. categories or products) should redirect to the same sub page in the chosen language.
Description
It looks like the language switch does not redirect the correct sub page correctly, when switching the language on a sub page (e.g. category or product pages). You get redirected to the homepage in the correct language.
Acceptance Criteria
- Visit https://frontends-demo.vercel.app/Cooking-pleasure-Provence/
- Change language to German
- The redirect should change the URL to https://demo-frontends.shopware.store/de-De/Cooking-pleasure-Provence/ , not to https://demo-frontends.shopware.store/de-De/
The logic should be the same as the regular Shopware Storefront implementation: https://shopware-6-demo.shop-studio.io/Clothing/
Additional information
- [ ] Would you be willing to help implement this feature?
Checks
- [x] Check existing discussions and issues.
Backend https://github.com/shopware/shopware/issues/12424