Allow i18n Detection in Pimcore Redirects
solverat opened this issue · comments
Q | A |
---|---|
Bug report? | yno |
Feature request? | yes |
BC Break report? | no |
RFC? | no |
Example
Given Structure
Domain: mydomain.com
Document Tree:
- de
- kollektion
- en
- collection
Example A:
- Enter host
my-old-collection-domain
- i18n should redirect to
mydomain.com/de/kollektion
if user is german - i18n should redirect to
mydomain.com/en/collection
if user is english
Example B:
- Enter host
mydomain.com/landingpage
- i18n should redirect to
mydomain.com/de/landingpage
if user is german - i18n should redirect to
mydomain.com/en/landingpage
if user is english
Solution
- Use
{i18n_localized_target_page=4}
as placeholder target row. - Page ID is mandatory
- Using the document by reference, it's possible to determinate all available linked documents and also providing a proper localized redirect
This has been implemented in 2.4.1
and 3.1.0
.