https://bugzilla.wikimedia.org/show_bug.cgi?id=34036
Krinkle <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX Summary|mw.loader.load doesn't |Add support for relative |works as importScriptURI |paths to mw.loader.load |for some kinds of URLs | --- Comment #2 from Krinkle <[email protected]> 2012-01-30 23:21:45 UTC --- mw.loader.load, as documented takes one ore more modules or a full url. Relative urls do not work, this is not a regression as is never worked. importScriptURI is still an unvalidated, raw way of adding a <script> tag for whatever is passed in. That hasn't changed. If some script is using a relative path to index.php and using importScriptURI, then that script will continue to work exactly as is. No regression. mw.loader.load can be used if you decide to migrate your script. In that case one should make sure that the url is complete, this is a requirement of mw.loader.loader because the path to which the url is relative to is dynamic because the script will be executed from load.php instead of where you write it. So in the case of index.php, you'd prefix it with wgServer. I don't think we should be adding exceptions for index.php. What about api.php, load.php, or extension files and resources ? There is need to add exceptions for everything, a full url will work. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
