I'm creating a javascript app for sharepoint, and I need to get the url of this app. The same url that is in content of site.
I need another solution because when i try to simply reload the page with javascript, the browser cache return old variables populated and I get error in my communication with lists.
I want something like this:
location.href = context.thisAppUrl;