Closed (fixed)
Project:
Switchtheme
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 May 2007 at 22:04 UTC
Updated:
2 Jul 2007 at 13:59 UTC
I tried to receive an answer from i18n developers, but without success. Here's my problem: after I've installed i18n (soon it will be added into the core) and switchtheme module, a strange issue appears when I'm trying to switch a theme on the frontpage.
Normally, if you are on www.example.com and switch a theme, you expect no change of that URL. Since switchtheme is changing the URL to www.example.com/node, i18n adds the language flag, like: www.example.com/en/node, and that's just an overkill for Drupal's $is_front. My solution is NOT to change the URL of the frontpage to anything else but www.example.com while changing the theme.
Here's the related issue:
http://drupal.org/node/138530
Comments
Comment #1
karens commentedSwitchtheme does not change the url, it only adds a regular Drupal form to the block, which behaves the way all Drupal forms behave -- it redirects back to the page it came from. In Drupal, a frontpage defaults to 'node', so that is where that url is coming from. Any module that adds a form to the frontpage is going to have the same thing happen, so it seems to me that i18n should have some sort of default behavior for that possibility. I don't think this is something Switchtheme can do anything about.
Comment #2
(not verified) commentedComment #3
jazzitup commentedYou're right, KarenS! Thanks!