为什么我的脚本推送了错误的URL?[/u/2插入脚本URL] [英] Why is my script pushing an incorrect URL? [/u/2 inserted into script URL]
问题描述
我是GAS的新手,试图在过渡期间保持应用程序的正常运行,并且最近开始出现以下问题.尽管脚本正在将URL(用于另一个已发布的脚本)推送到菜单项链接中……(参见图片)
I'm an GAS novice, attempting to keep an application afloat during a time of transition, and the following issue began presenting recently. Although the script is pushing a URL (for another published script) into a menu item link ... (see images)
...通过脚本设置的URL不是已发布的应用程序中某些(并非全部)个人正在访问的URL.某些用户不是直接通过链接打开以" https://script.google.com/macros/s/AK..."
开头的URL,而是将某些用户定向到以开头的URL>" https://script.google.com/macros/u/2/s/AK ..."
.(请注意添加了 /u/2
).请参见下面的屏幕截图.
...the URL set via the script is not what is being accessed by some (not all) individuals in the published application. Rather than their link opening a URL beginning with "https://script.google.com/macros/s/AK..."
, some users being directed to URLs that begin with "https://script.google.com/macros/u/2/s/AK..."
. (Note the addition of the /u/2
) Please see screenshot below.
感谢您对如何识别潜在问题的任何想法.
推荐答案
/u/2
(数量可能有所不同)在Google帐户中.
/u/2
(the number could vary) are added by Google on web applications that use Google accounts when the user is signed in a Google account.
当用户登录多个Google帐户时,数字会有所不同:
The numbers vary when the user have signed in in multiple Google accounts:
- 0代表默认帐户
- 第二个帐户1个
- 第3个帐户的2,依此类推.
关于潜在的问题,存在与此相关的已知问题,通常在客户端代码调用需要访问私有文档,文件,表单,幻灯片,电子表格的服务器端函数时发生.
Regarding potencial issues, there is know issue related to this that usually happens when the client-side code calls a server side function that requires to access a private doc, file, form, slide, spreadsheet.
相关
这篇关于为什么我的脚本推送了错误的URL?[/u/2插入脚本URL]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!