Details
-
Bug
-
Resolution: Fixed
-
Major
-
10.8.1, 10.9
-
None
-
Unknown
-
N/A
-
N/A
-
Description
The current code does:
var restURL = xm.restURL.substring(0, xm.restURL.indexOf('/rest/')) + '/rest/notifications?media=json';
This is not clean at all.
A correct way to do it would be
var restURL = "${request.contextPath}/rest/notifications?media=json";
(even if it requires velocity to parse the code, for which I have been criticized in the past)