Pass script path to URL generator
Bug: T288686 Change-Id: I4d4d27de2d52f3486e01c8c70bda1b9c03178a24
This commit is contained in:
parent
24b5d5840e
commit
c73e551d49
|
@ -7,6 +7,7 @@
|
|||
:suggestions-label="$i18n( 'searchresults' ).text()"
|
||||
:accesskey="searchAccessKey"
|
||||
:title="searchTitle"
|
||||
:article-path="articlePath"
|
||||
:placeholder="searchPlaceholder"
|
||||
:aria-label="searchPlaceholder"
|
||||
:search-page-title="searchPageTitle"
|
||||
|
@ -60,6 +61,10 @@ module.exports = {
|
|||
}
|
||||
},
|
||||
computed: {
|
||||
/**
|
||||
* @return {string}
|
||||
*/
|
||||
articlePath: () => mw.config.get( 'wgScript' ),
|
||||
/**
|
||||
* Allow wikis eg. Hebrew Wikipedia to replace the default search API client
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue