You need to make sure not to assume an absolute path here because customers may deploy the app to a different context path (e.g. `mycockpit/`) too.

We have the [Uri service](https://github.com/camunda/camunda-bpm-platform/blob/master/webapps/camunda-webapp/webapp/src/main/webapp/app/common/services/uri.js) to resolve path relative to the webapp root. See [how it gets configured](https://github.com/camunda/camunda-bpm-platform/blob/master/webapps/camunda-webapp/webapp/src/main/webapp/app/cockpit/cockpit.js#L55) and [used](https://github.com/camunda/camunda-bpm-platform/blob/master/webapps/camunda-webapp/webapp/src/main/webapp/app/cockpit/resources/incidentResource.js#L7).

Could you change your code to use that service?