I would assume your application knows on what URL it will be published otherwise, get it at startup using: window.location.href
I would assume your application knows on what URL it will be published otherwise, get it at startup using: window.location.href