From 75e2589e1e514a79a0f38f0517ea5a26aa9a0798 Mon Sep 17 00:00:00 2001 From: userquin Date: Sun, 30 Jul 2023 01:10:14 +0200 Subject: [PATCH] chore: don't decode target uri --- middleware/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')