From 8104408434c01a5206980deab39653ce9cb19e77 Mon Sep 17 00:00:00 2001 From: Loup Theron Date: Wed, 18 Oct 2023 15:27:56 +0200 Subject: [PATCH] Add /light to backward compatible paths --- frontend/src/hooks/authorization/useGetUserAuthorization.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/hooks/authorization/useGetUserAuthorization.ts b/frontend/src/hooks/authorization/useGetUserAuthorization.ts index 5da0b7e68f..d7dc8c4f6a 100644 --- a/frontend/src/hooks/authorization/useGetUserAuthorization.ts +++ b/frontend/src/hooks/authorization/useGetUserAuthorization.ts @@ -18,7 +18,7 @@ export function useGetUserAuthorization(): UserAuthorization | undefined { * This is used to have backward compatibility with the Apache .htacess authentication (on `/` and `/ext`) while the authentication * is not yet activated, as the app is only protected by the entrypoint path. */ - const isExtPage = window.location.pathname === '/ext' || window.location.pathname === '/nav' + const isExtPage = window.location.pathname === '/ext' || window.location.pathname === '/light' setUserAuthorization({ isLogged: true,