ezsystems/ezpublish-legacy — pull request #1091 by joaoinacio (2014-10-16 17:27:26+00:00)
Title: Fix EZP-23483: consider PathPrefix if necessary in language switcher redirect

JIRA: https://jira.ez.no/browse/EZP-23483

When switching to/from siteaccess with (different) `PathPrefix` setting, the redirect is often not handled correctly.
This PR considers the current/destination SA's PathPrefix and adjusts destination url accordingly.

Tests: manual