why is ScriptApp.getService().getUrl() returning another URL while the web app is on another URL? after deploying the web app, the link to it is "https://script.google.com/macros/s/AKfycbyLfBVBICZES9w7N5sYzBYHv8oujoNG1FPnmYxGckZHNWSJh-nDWoFaWw5oZs7Cz3M6QA/exec" but on logger.log when i check the getUrl() it is "https://script.google.com/macros/s/AKfycbwFNB8lsKqyaECOo5Nzdj7SmYB26uXarHZD9WSYTLzmxIDLsoEN/exec"
i have a simple function in this web app to test:
function myFunction() {
var url = ScriptApp.getService().getUrl();
Logger.log(url)
}
when i try the link it says "Sorry, unable to open the file at this time.
Please check the address and try again."
what is happening?
*edit: can someone highlight to me what is the purpose of having ScriptApp.getService().getUrl() when it is not doing what it was intended to do?
What i'm trying to do: I cannot have more than 1 html page in the web app or to be specific, i cannot link to another html page within the web app