[
https://issues.apache.org/jira/browse/SLING-1749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12908042#action_12908042
]
Tom Barber commented on SLING-1749:
-----------------------------------
Er yeah, forgot about the solution, well,
Change the line to: Sling.baseurl = script.substring(0,script.length -
(("system/"+Sling.NAME_OF_THIS_FILE).length));
I think this may be left over from ml stuff I read where you moved its
location, either way of course this is now hardcoded to the system folder, but
it works for me :)
Thanks
Tom
> sling.js prevents baseurl being detected correctly when the webapp isn't on
> the / docroot
> -----------------------------------------------------------------------------------------
>
> Key: SLING-1749
> URL: https://issues.apache.org/jira/browse/SLING-1749
> Project: Sling
> Issue Type: Bug
> Components: Servlets
> Reporter: Tom Barber
>
> Running the svn checkout from this morning the sling.js file located in
> sling/bundles/servlets/post has a bug on line 416.
> The "/" being appended breaks the substring and the baseurl is always "".
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.