Details
-
Bug
-
Resolution: Unresolved
-
High
-
None
-
5.3.3, 2014.11, 5.4.2
Description
In a site with 2 translations (2 siteaccess with different language), I have a language switcher implemented as explained in https://doc.ez.no/display/EZP/Language+Switcher.
If I am on an article in french that has no english translation and I switch to english siteaccess the urlAlias generated will be wrong : mysite.com/eng/fre/content/location/63
If we look into https://github.com/ezsystems/ezpublish-kernel/blob/master/eZ/Publish/Core/MVC/Symfony/Routing/Generator/UrlAliasGenerator.php#L74 we see that if there is not translation for the current location if will fallback to the default router. But the default router will generate an url of type fre/content/location/63 and because we ask for a siteaccess change it will result in mysite.com/eng/fre/content/location/63
Shouldn't this redirect to root location if there is no translation ?