漏洞 ID 编号 |
BUG-000170698 |
已提交 | September 11, 2024 |
上次修改时间 | April 25, 2025 |
适用范围 | ArcGIS Online |
找到的版本 | N/A |
操作系统 | Windows OS |
操作系统版本 | 10.0 64 Bit |
状态 | Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
|
附加信息
This is expected as the data itself contains the HTML tag and not just a text link. The link in the data does not have the target=_blank attribute to denote opening in a new tab.
There are two possible solutions:
Remove the anchor tag and let the pop-up generate the anchor tag (which causes opening in a new window) automatically which include the target attribute or add the target blank attribute to the HTML tag in the field value.
This change was made between Map Viewer Classic (3x JS-API) and Map Viewer (4x JS-API) to give the map author/developers more choices on how the links to present themselves in the apps/maps and custom apps. As a general practice, avoid parsing user HTML and changing it on the fly (such as auto inserting target blank) unexpectedly.
解决办法
Add target into the HTML code to allow the link to open in a new tab. Refer to the following documentation: https://www.w3schools.com/html/html_links.asp#:~:text=HTML%20Links%20%2D%20The%20target%20Attribute.
重现步骤