The default sharepoint hosted app url looks like http://[app prefix]-[app id].[domain name]/[site collection path]/[app path]/pages/default.aspx. It is pathetic because every deployment during QA/UAT generates new url. We have to ask our tester/clients to perform testing/UAT on new url. Is there anyway to static the app url?
1 Answer
Static URL is available only for Provider Hosted Apps.
The workaround you can do is create a page and put a redirect in that page to your app. This way you can share the page URL to the end user.
After each deployment you should change the redirect url in the page.
-
Thanks for reply, however I have to pass the query string parameters containing the real time values with the site page url to which we want to redirect.. Commented Jul 9, 2016 at 14:26
-
have your redirect page extract the querystring parameters and generate a
document.location=
call Commented Jul 9, 2016 at 19:15 -
If the page url's are dynamic then this approach will not work. Because you are providing end users a static URL. Commented Jul 9, 2016 at 21:55