BoltTranslate / Translate

Provides translation for contenttypes.
Other
43 stars 37 forks source link

Homepage redirect no longer working #47

Closed SvanteRichter closed 8 years ago

SvanteRichter commented 8 years ago

Homepage redirect no longer working since the homepage gets a default _locale since #43.

Possible duplicate content issue since the same page will happily display on both / and /{default_locale_here} (with different canonicals).

Details

peterverraedt commented 8 years ago

I should have known this, I encountered the same bug before in my early attempt to port the extension to bolt 3.0. The best solution is to remove the default _locale, and to make sure that the _locale parameter is always set in the url_generator's context, since that was the main reason to put a default value. I'll post a pull request in a minute.