Language switch is broken after renaming pages.
HI All,
I have a scenario, my client has renamed few pages in one languages which is causing Language switch failed to navigate to right page.
I have pages like
/content/abc/en/home.html
/content/abc/fr/home.html
After renaming the FR home (from /content/abc/fr/home.html to /content/abc/fr/domicile.html), language switcher failed to resolve the same page from EN -> FR.
How to address this issue, to make sure Language switch works again without effecting SEO?
I tried
Approach:
I used ‘alias’ on the renamed page (FR Home) same ‘name’ as EN Home page.
Which resulted
/content/abc/fr/domicile.html sling:slais = home and adjusted the Sling model code to fetch page path with alias or actual name, vice versa.
Pros: This fix works for all pages globally with same scenario.
Cons: This may affect SEO, since the ‘actual page name’ is hidden/masked by alias.
Worst case, should I ask my client rename them back to original to align with EN pages?
Can you guys suggest better approach?
Thanks,
Raju.