i18n & switchtheme vs. frontpage
madjoe - May 5, 2007 - 22:04
| Project: | Switchtheme |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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

#1
Switchtheme 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.
#2
#3
You're right, KarenS! Thanks!