http://www.mediawiki.org/wiki/Special:Code/MediaWiki/99783
Revision: 99783
Author: preilly
Date: 2011-10-14 18:08:23 +0000 (Fri, 14 Oct 2011)
Log Message:
-----------
remove the use of a form with the method of get as it causes a trailing ? on
the URL thus causing cache pollution
Modified Paths:
--------------
trunk/extensions/MobileFrontend/views/layout/_search_webkit.html.php
Modified: trunk/extensions/MobileFrontend/views/layout/_search_webkit.html.php
===================================================================
--- trunk/extensions/MobileFrontend/views/layout/_search_webkit.html.php
2011-10-14 18:04:12 UTC (rev 99782)
+++ trunk/extensions/MobileFrontend/views/layout/_search_webkit.html.php
2011-10-14 18:08:23 UTC (rev 99783)
@@ -23,8 +23,8 @@
</form>
</div>
<div class='nav' id='nav'>
- <form method="get" action="{$mainPageUrl}"><button type="submit"
id="homeButton">{$homeButton}</button></form>
- <form method="get" action="{$randomPageUrl}"><button type="submit"
id="randomButton">{$randomButton}</button></form>
+ <button onClick="javascript:location.href='{$mainPageUrl}';"
type="submit" id="homeButton">{$homeButton}</button>
+ <button onClick="javascript:location.href='{$randomPageUrl}';"
type="submit" id="randomButton">{$randomButton}</button>
</div>
</div>
EOD;
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs