-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
replace relative paths "/wiki/" with $wgScriptPath #46
Comments
simontaurus
added a commit
to OpenSemanticWorld-Packages/world.opensemantic.core
that referenced
this issue
Sep 10, 2023
simontaurus
added a commit
that referenced
this issue
Sep 10, 2023
simontaurus
added a commit
that referenced
this issue
Oct 7, 2023
simontaurus
added a commit
to OpenSemanticLab/mediawiki-extensions-MwJson
that referenced
this issue
Oct 7, 2023
simontaurus
added a commit
to OpenSemanticLab/mediawiki-extensions-MwJson
that referenced
this issue
Oct 8, 2023
simontaurus
added a commit
to OpenSemanticLab/mediawiki-extensions-SvgEditor
that referenced
this issue
Oct 17, 2023
simontaurus
added a commit
to OpenSemanticLab/mediawiki-extensions-ChemEditor
that referenced
this issue
Oct 17, 2023
simontaurus
added a commit
to simontaurus/WellplateEditor
that referenced
this issue
Oct 17, 2023
simontaurus
added a commit
to OpenSemanticLab/mediawiki-extensions-SpreadsheetEditor
that referenced
this issue
Oct 17, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/wiki/
vs/w/index.php?title=
$wgScript
+?title=<title>
$wgScriptPath
+/index.php
or/api.php
+ query stringjs
mw.config
see https://www.mediawiki.org/wiki/Manual:Interface/JavaScript#mw.config or directly usemw.util.getUrl( 'MediaWiki:Foo.css', { action:'raw' }
(see https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.util)Also needs replacement in schemas:
to
(requires pretty urls, "./" is required because ":" is not allowed in the first path segment)
or
see also: https://stackoverflow.com/questions/24028561/relative-path-in-html
ToDo:
replace all
"/w/api..."
withmw.config.get("wgScriptPath") + "/api..."
replace all
"/wiki/title"
withmw.util.getUrl("title")
The text was updated successfully, but these errors were encountered: