Pass script path to URL generator

Bug: T288686
Change-Id: I4d4d27de2d52f3486e01c8c70bda1b9c03178a24
This commit is contained in:
Jon Robson 2022-03-23 10:37:39 -07:00
parent 24b5d5840e
commit c73e551d49
1 changed files with 5 additions and 0 deletions

View File

@ -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
*