Download & Extend

Front page redirects only once?

Project:#translatable
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

I really don't know for whatever reason this happens, but the "redirect to localized front page" option redirects only once and stores this first time redirection in a session variable to avoid subsequent redirects.

Q: Why would I want to see a front page in a language that I don't understand?

Any use-cases out there?

Patch is only temporary, to outline this bug.

AttachmentSize
translatable.frontpage.patch767 bytes

Comments

#1

Status:needs review» fixed

Additionally, the switch by hostname support does not work at all for anonymous users. Since i18n_get_lang() does not check the hostname to assign the current locale, anonymous users are redirected to the default language/hostname of a site. That is, because translatable_change_uilocale() is invoked by locale_initialize() and contains multiple calls to translatable_get_locale(), which in turn returns NULL, since $locale has not been set yet.

I've committed attached patch to fix these issues.

AttachmentSize
translatable-DRUPAL-5.patch 6.11 KB

#2

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.