Closed glen-84 closed 10 years ago
The point is that the locale is de-DE
or en-US
(so always the full locale and not the language part). There simply doesn't exist a TLD which is a locale. Even if you have .de or .nl, those are the language part so you have to make a mapping from the language to the locale.
Again here, it's good to have proper docs to explain this, as it doesn't seem logical.
Use:
Then, tries to redirect to "http://domain./de/" because there is no alias (which shouldn't be required).
This code:
Should be something like this (untested):
getAliasForLocale() is not required unless I'm missing something.