index.php?theme=
I believe that is in part to an error in the theme and in part the mod.
In "Surfez Couvert" excellent theme revision.if you take...
if (((!empty($_GET['action'])) && ($_GET['action']=='iphone')) || !$_GET){
$backlink = 'index.php?theme=' . $modSettings['id_theme'];
$backname = $txt['iClassic'];
and replace it with...
if (((!empty($_GET['action'])) && ($_GET['action']=='iphone')) || !$_GET){
$backlink = 'index.php?theme=1;';
$backname = $txt['iClassic'];
Replace the "1" with your actual default theme ID.
In the mod.I added a session so that the the iphone theme will only be loaded once while your browser is running. The session variable is temporary and will be reset when you quit the browser. See attached version 2.5.1. Please test it.
Does it work with the theme changes?
I will like to note to anyone else who wishes to edit this. If you run the following in php the session will be destroyed:
unset($_SESSION['smf4iphone']);
Furthermore this mod looks at all mobile devices so if you have another mod installed this will end up being your default. I believe this is the most accurate mobile detection to date. I am sure someone else will do better later.
Finally, the mod settings can be changed so this mod can be used with other themes by simply changing the theme ID.