Index: trunk/extensions/MobileFrontend/MobileFrontend.php |
— | — | @@ -754,6 +754,7 @@ |
755 | 755 | $htmlTitle = self::$messages['mobile-frontend-opt-in-title']; |
756 | 756 | $explainOptIn = self::$messages['mobile-frontend-opt-in-explain']; |
757 | 757 | $optInMessage = self::$messages['mobile-frontend-opt-in-message']; |
| 758 | + $formAction = wfExpandUrl( Title::newMainPage()->getFullURL(), PROTO_CURRENT ); |
758 | 759 | require( 'views/layout/_search_webkit.html.php' ); |
759 | 760 | require( 'views/layout/_footmenu_default.html.php' ); |
760 | 761 | require( 'views/information/optin.html.php' ); |
— | — | @@ -778,6 +779,7 @@ |
779 | 780 | $htmlTitle = self::$messages['mobile-frontend-opt-out-title']; |
780 | 781 | $explainOptOut = self::$messages['mobile-frontend-opt-out-explain']; |
781 | 782 | $optOutMessage = self::$messages['mobile-frontend-opt-out-message']; |
| 783 | + $formAction = wfExpandUrl( Title::newMainPage()->getFullURL(), PROTO_CURRENT ); |
782 | 784 | require( 'views/layout/_search_webkit.html.php' ); |
783 | 785 | require( 'views/layout/_footmenu_default.html.php' ); |
784 | 786 | require( 'views/information/optout.html.php' ); |
Index: trunk/extensions/MobileFrontend/views/information/optin.html.php |
— | — | @@ -7,7 +7,7 @@ |
8 | 8 | {$explainOptIn} |
9 | 9 | </p> |
10 | 10 | <div id='disableButtons'> |
11 | | - <form action='/' method='get'> |
| 11 | + <form action='{$formAction}' method='get'> |
12 | 12 | <input name='mobileaction' type='hidden' value='opt_in_cookie' /> |
13 | 13 | <button id='disableButton' type='submit'>{$yesButton}</button> |
14 | 14 | </form> |
Index: trunk/extensions/MobileFrontend/views/information/optout.html.php |
— | — | @@ -7,7 +7,7 @@ |
8 | 8 | {$explainOptOut} |
9 | 9 | </p> |
10 | 10 | <div id='disableButtons'> |
11 | | - <form action='/' method='get'> |
| 11 | + <form action='{$formAction}' method='get'> |
12 | 12 | <input name='mobileaction' type='hidden' value='opt_out_cookie' /> |
13 | 13 | <button id='disableButton' type='submit'>{$yesButton}</button> |
14 | 14 | </form> |