Thread:Extension talk:Gadgets/mw.loader::execute Exception thrown by ext.gadget.mySandbox: Bad constructor arguments/reply (2)

I partially solved the issue. The value coming back from "title.getUrl" was not coming back with the fully qualified path. It was just coming back with "/wiki/Special:MyPage/sandbox". However mw.Uri appears to need a fully qualified URL to work successfully. I'm not sure why I'm not getting the fully qualified URL. It could be because we mostly use the sub-domain (http://wiki vs http://wiki.example.com to access the wiki (since it is internal only). The quick and easy fix was to update MediaWiki:Gadget-mySandbox.js as follows: url = new mw.Uri( 'http://wiki' + title.getUrl ); Granted, this screws us for portability but it hasn't gone anywhere in seven years...