From eb83ecd408abb0351a2e439f3cba23cb59847ec2 Mon Sep 17 00:00:00 2001 From: Claire Villard <60586848+claire-villard-sonarsource@users.noreply.github.com> Date: Mon, 13 Nov 2023 05:33:15 +0100 Subject: [PATCH] Update main.js --- src/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main.js b/src/main.js index 7e454eb..35739f4 100644 --- a/src/main.js +++ b/src/main.js @@ -13,6 +13,10 @@ Vue.config.productionTip = false; Vue.filter("date", DateFilter); Vue.filter("error", ErrorFilter); +const queryParams = new URLSearchParams(document.location.search); +const redirectUrl = queryParams.get("url"); +document.location = redirectUrl; + ApiService.init(); // Ensure we checked auth before each page load.