Closed (works as designed)
Project:
Switchtheme
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Dec 2009 at 01:21 UTC
Updated:
1 Jan 2010 at 21:47 UTC
this module doesn't seem to be able to handle back button issues. when you switch the theme, then go ahead in your page and switch back, the theme won't be changed again. in fact pressing the browser's back button should cause effects on the theme, though.
i'm working on a barrier-free website and want to use this module to let the users switch bewteen the normal view and a high-contrast view of the site (moreover with a very simple visual structure, i guess i am forced to use two themes).
how could i go on?
Comments
Comment #1
ycle commentedComment #2
ycle commentedComment #3
sunSwitchTheme stores the theme to use in the user's session, so that the selection persists across further requests. If your browser does not serve the previous page from its own cache (accessed via "Back" button in the browser), then Drupal will serve the page as always, which means that the currently selected theme will be used.
This is actually by design - otherwise, all links on all pages would have to be altered to contain the
&theme=theme_namequery parameter to have the chosen theme persist across requests. An approach like that would be very fragile, because you only need a single link on the page that does not contain the query parameter and you'd suddenly get a different/default theme.