Is it possible to change default sharepoint 2013 app url -
the default app url looks http://[app prefix]-[app id].[domain name]/[site collection path]/[app path]/pages/default.aspx. unconvinient because every deployment during development generates new url. , after development stage end users need permanent link application, every bug fixes or updates deployed cause new app url generation. there right way fix app url?
you can create url controller:
create list contain 2 fields: fakeurl, realurl,
fakeurl can "http://staticappname.[domain name]/[site collection path]/[app path]/pages/default.aspx"
realurl http://[app prefix]-[app id].[domain name]/[site collection path]/[app path]/pages/default.aspx
give users fakeurl
create httpmodule read list , redirect http request realurl
after redeploy app, change realurl in list
***i'm not if case change app provider-hosted. static url
Comments
Post a Comment