diff --git a/nuxt4/app/components/auth/ApplicationsList.vue b/nuxt4/app/components/auth/ApplicationsList.vue index 77b4c4e..8e6fffa 100644 --- a/nuxt4/app/components/auth/ApplicationsList.vue +++ b/nuxt4/app/components/auth/ApplicationsList.vue @@ -73,6 +73,7 @@ :href="app.launchUrl" :target="shouldOpenInNewTab(app) ? '_blank' : '_self'" class="app-card" + @click="handleAppClick($event, app)" >
@@ -321,6 +322,21 @@ const shouldOpenInNewTab = (app: Application): boolean => { return result } +// Manejar click en app-items +// En desktop, forzar apertura con window.open() para bypassear capture_links +const handleAppClick = (event: MouseEvent, app: Application) => { + if (shouldOpenInNewTab(app)) { + // Prevenir comportamiento por defecto del enlace + event.preventDefault() + + console.log('[ApplicationsList] Abriendo en nueva ventana con window.open():', app.launchUrl) + + // Forzar apertura con window.open() para bypassear el manifest + window.open(app.launchUrl, '_blank') + } + // Si no debe abrir en nueva tab, dejar que el enlace funcione normalmente +} + // Limpiar interval cuando el componente se desmonte onUnmounted(() => { clearInterval(refreshInterval)