If I've created a web app in Google Apps Script using the HtmlService any hyperlinks I include in my template pages during development use the URL structure:
https://script.google.com/a/macros/[domain]/s/[app dev id]/dev?page=form
Whereas once the app is deployed the links need to be:
https://script.google.com/a/macros/[domain]/s/[app exec id]/exec?page=form
To save me having to change every hyperlink when deploying the web app, what would be the most manageable solution?
Relative hyperlinks don't seem to work and using ScriptApp.getService().getUrl()
will only return null if it isn't deployed.