Previously when trying to switch language on any static routes, it would just redirect to home page of the selected language.
An attempt to fix it was provided on https://github.com/pimcore/demo/pull/435 but it caused to stop working on normal documents.
This PR provides the fix and also returns the translated slugs (which 435 did only prepend the /de and /en)
Resolves https://github.com/pimcore/demo/issues/517
Previously when trying to switch language on any static routes, it would just redirect to home page of the selected language. An attempt to fix it was provided on https://github.com/pimcore/demo/pull/435 but it caused to stop working on normal documents. This PR provides the fix and also returns the translated slugs (which 435 did only prepend the
/de
and/en
)