Greetings to the GAS community!
I try to make a little application in App Script with multiple web page (HTML files).
Inside the HTML files, I put some links in order to go from one page to another.
Links are build with the getUrl() function + a parameter ("?page=").
I test this parameter in my doGet() to know the page to return.
I published the App as a Web App and so could access it through given URL (or the dev URL, whatever).
From this URL, if I want to go from on page to another using the links, it works fine !
Then, in order to have a beautiful web page, I created a Google Site.
No problem in embedding my script based on the URL given.
But when I try to click on links, nothing happen.
I tried multiple things (having button with some javascript behind (like window.open(newURL, "_top")) and so on.
Nothing work.
If I go on debug mode, it shows that (as I understand), Google Site is using "_top" for himself. And that the App Script is runing in a iFrame.
But also I found it, I didn't found a way to change the content of the iFrame either.
...
If I try, I get this one :
And I can't modify the iFrame as it's Google Site that create and manipulate it (not as if it was my own web site).
To be fair, the only things that "works" was window.open(newURL, "_self"). But only one time. And I get this
So, simpe question : what to do (set or anything) to have a working multi-html-pages APP Script embeded in a Google Sites ?
Thanks in advance,
Thomas