-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
- Option1: $wgArticlePath for direct page links. May or may not contain query params, e.g.
/wiki/vs/w/index.php?title= - Option2: $wgScript to build a query like
$wgScript+?title=<title> - Option3: $wgScriptPath for
$wgScriptPath+/index.phpor/api.php+ query string
js mw.config see https://www.mediawiki.org/wiki/Manual:Interface/JavaScript#mw.config or directly use mw.util.getUrl( 'MediaWiki:Foo.css', { action:'raw' } (see https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.util)
Also needs replacement in schemas:
{
"@context": [
"/wiki/Category:Item?action=raw&slot=jsonschema"
],
"allOf": [
{
"$ref": "/wiki/Category:Item?action=raw&slot=jsonschema"
}
]
}to
{
"@context": [
"./Category:Item?action=raw&slot=jsonschema"
],
"allOf": [
{
"$ref": "./Category:Item?action=raw&slot=jsonschema"
}
]
}(requires pretty urls, "./" is required because ":" is not allowed in the first path segment)
or
{
"@context": [
"./index.php?title=Category:Item&action=raw&slot=jsonschema"
],
"allOf": [
{
"$ref": "./index.php?title=Category:Item&action=raw&slot=jsonschema"
}
]
}see also: https://stackoverflow.com/questions/24028561/relative-path-in-html
ToDo:
replace all "/w/api..." with mw.config.get("wgScriptPath") + "/api..."
replace all "/wiki/title" with mw.util.getUrl("title")
- fix extension MwJson
- fix extension OpenSemanticLab
- fix extension InteractiveSemanticGraph
- fix editor extensions
- fix OpenSemanticWorld-Schemas (minor, already handled by bundler in MwJson)
Metadata
Metadata
Assignees
Labels
No labels