Anchor link to app with parameters, google apps script

后端 未结 1 1577
礼貌的吻别
礼貌的吻别 2021-01-17 01:40

I have the following anchors in my html template:

\">&l         


        
相关标签:
1条回答
  • 2021-01-17 01:57

    To add GET parameters to a URL, you should use the ? character to introduce them (instead of the & character). The ampersand is used to add multiple variables. So your URL should look like this.

    http://script.google.com/[.......]/exec?variable=data&otherVariable=otherData
    

    So since you didn't have the ?, the URL was sanitized to eliminate those characters.

    This web app that I made illustrates the difference.

    <a href="<?= ScriptApp.getService().getUrl()+"?filter=bomgar" ?>"><button>Bomgar Feedback</button></a>
    
    0 讨论(0)
提交回复
热议问题