Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
FNDN Admin Posted July 17, 2017 Posted July 17, 2017 Hey, I am building a JavaScript mixin to load with a controller and I am having trouble loading it in IPS version 4.1.19.4. The problem is when I try to load the script, I get two forward slashes in the URL which leads to it being not found: http://172.18.15.11/<domain>//applications/<appname>/... I looked in the system/Output/Output.php and on line 231, there is a comment: /* @see http://community.invisionpower.com/4bugtrack/some-js-files-get-loaded-with-a-double-in-the-url-r3558/ */ but the link http://community.invisionpower.com/4bugtrack/some-js-files-get-loaded-with-a-double-in-the-url-r3558/ leads to an error. The problem seemed to be fixed in 4.2 Beta 7a with the comment being removed, but I am wondering if the link had information for a workaround, whether I can do a temporary fix for version 4.1.19.4 or will there be a 4.1.19.5 release with this fix? *when IN_DEV, I get the double forward slash. Not IN_DEV, I get an empty array as result. Loading it: \IPS\Output::i()->jsFiles = array_merge( \IPS\Output::i()->jsFiles, \IPS\Output::i()->js( 'warnings.js', '<app name>', 'front' ) );
Recommended Posts
Archived
This topic is now archived and is closed to further replies.