From c9dc6e58ea29f13dae4040bd73a2175d69e39d0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Tue, 6 Aug 2024 17:34:45 +0200 Subject: [PATCH] fix: show TextPage even if user is not logged in --- assets/App.tsx | 3 ++- translations/translations.pot | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/assets/App.tsx b/assets/App.tsx index cead534..2bd4a37 100644 --- a/assets/App.tsx +++ b/assets/App.tsx @@ -48,7 +48,8 @@ export default function App() { if (location.pathname === '/login') navigate('/home') }).catch(() => { setIsAuthenticated(false) - if (location.pathname !== '/login') navigate('/home') + const pathname = location.pathname + if (!['/login', '/tos', '/faq', '/privacy'].includes(pathname)) navigate('/home') }) }, []); diff --git a/translations/translations.pot b/translations/translations.pot index 2f31612..00ad76a 100644 --- a/translations/translations.pot +++ b/translations/translations.pot @@ -539,23 +539,23 @@ msgid "" "another" msgstr "" -#: assets/App.tsx:100 +#: assets/App.tsx:101 msgid "TOS" msgstr "" -#: assets/App.tsx:101 +#: assets/App.tsx:102 msgid "Privacy Policy" msgstr "" -#: assets/App.tsx:102 +#: assets/App.tsx:103 msgid "FAQ" msgstr "" -#: assets/App.tsx:104 +#: assets/App.tsx:105 msgid "Documentation" msgstr "" -#: assets/App.tsx:107 +#: assets/App.tsx:108 #, javascript-format msgid "" "${ ProjectLink } is an open source project distributed under the ${ "