laptop and a wrench

Error

Opening HTML hyperlinks from the feature pop-up in Map Viewer opens in the same tab.

ArcGIS Online
Número de ID del error BUG-000170698
EnviadoSeptember 11, 2024
Última modificaciónApril 25, 2025
Relacionado conArcGIS Online
Versión encontradaN/A
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
EstadoWill Not Be Addressed

Información adicional

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.

Solución alternativa

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.

Pasos para reproducir

ID del error: BUG-000170698

Software:

  • ArcGIS Online

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga