diff --git a/middleware/auth.ts b/middleware/auth.ts index 2f048b7e..2c8a6b39 100644 --- a/middleware/auth.ts +++ b/middleware/auth.ts @@ -17,7 +17,7 @@ function handleAuth(to: RouteLocationNormalized) { if (to.path === '/') { // handle PWA protocol handler if (to.query['protocol-handler'] && to.query.target) { - const target = decodeURIComponent(to.query.target as string).replace(/^web\+ap:\/\//, 'https://') + const target = (to.query.target as string).replace(/^web\+ap:\/\//, 'https://') // eslint-disable-next-line no-console console.log(target) return navigateTo('/home')