From cd65b1acd0c5801c88ef7f314c96eb0172107080 Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Thu, 5 Oct 2023 11:40:07 +0200 Subject: [PATCH] #612 --- web/src/core/adapters/oidc/oidc.ts | 2 +- web/src/ui/pages/home/route.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/core/adapters/oidc/oidc.ts b/web/src/core/adapters/oidc/oidc.ts index c2c38716a..40af50156 100644 --- a/web/src/core/adapters/oidc/oidc.ts +++ b/web/src/core/adapters/oidc/oidc.ts @@ -87,7 +87,7 @@ export async function createOidc(params: { await userManager.signinRedirectCallback(); - window.location.replace(url); + window.history.pushState(null, "", url); } let currentAccessToken = (await userManager.getUser())?.access_token ?? ""; diff --git a/web/src/ui/pages/home/route.ts b/web/src/ui/pages/home/route.ts index 544bbf76a..20f236b23 100644 --- a/web/src/ui/pages/home/route.ts +++ b/web/src/ui/pages/home/route.ts @@ -1,7 +1,7 @@ import { createRouter, defineRoute, createGroup, type Route } from "type-route"; export const routeDefs = { - "home": defineRoute(["/home", "/", "/accueil"]) + "home": defineRoute(["/", "/home", "/accueil"]) }; export const routeGroup = createGroup(Object.values(createRouter(routeDefs).routes));