Index: branches/wmf/1.18wmf1/extensions/MobileFrontend/javascripts/opensearch.js |
— | — | @@ -71,6 +71,7 @@ |
72 | 72 | for ( i = 0; i < sections.length; i++ ) { |
73 | 73 | var section = sections[i]; |
74 | 74 | var rel = i + 1; |
| 75 | + section.value = section.value.replace(/^(?:\/\/|[^\/]+)*\//, '/'); |
75 | 76 | html = html + "<div class=\"suggestions-result\" rel=\"" + rel + "\" title=\"" + section.label + "\"><a href='" + section.value + "'>" + section.label + "</a></div>"; |
76 | 77 | } |
77 | 78 | html = html + '</div>'; |
Index: branches/wmf/1.18wmf1/extensions/MobileFrontend/views/layout/application.html.php |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | $endScriptTag = '"></script>'; |
20 | 20 | $javaScriptPath = $wgExtensionAssetsPath . '/MobileFrontend/javascripts/'; |
21 | 21 | |
22 | | -$openSearchScript = ( self::$isBetaGroupMember ) ? $startScriptTag . $javaScriptPath . 'opensearch.js?version=10202011120715' . $endScriptTag : ''; |
| 22 | +$openSearchScript = ( self::$isBetaGroupMember ) ? $startScriptTag . $javaScriptPath . 'opensearch.js?version=10262011120715' . $endScriptTag : ''; |
23 | 23 | |
24 | 24 | $applicationHtml = <<<EOT |
25 | 25 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |