Reputation: 400
How do I get the base URL from within the doGet(e)
function?
If I am writing an HTML template that is setting anchors, how do I determine the base URL? It could be .../exec or .../dev.
I do not see the URL in the parameters.
Upvotes: 0
Views: 397
Reputation: 400
techhowch's comment got me going in the right direction.
ScriptApp.getService().getUrl()
does the trick!
Documentation:
Upvotes: 3