concrete5/addon_internationalization — pull request #51 by Remo (2014-04-10 07:48:15+00:00)
Title: make sure we don't redirect non-existent pages

We've had the problem that scottc's URL director didn't play well with the multilingual add-on if we let it redirect the home page to the language page (e.g. / > /de/).

What I've had to change is simple. Instead of checking the collection path, I'm checking the request path which is set, if we call a URL like http://www.customer.ch/old-page.html. Since concrete5 doesn't know anything about that page, it won't return a collection path, but it returns a request path and then lets the URL director do its magic.

I'm not entirely sure if my change won't have any side effects, but we'll test it on one site where we had that problem. Any feedback appreciated!