From fe4edfc7d1569b59630ef1bd545e761a5b121538 Mon Sep 17 00:00:00 2001 From: eliasnijs Date: Wed, 28 Feb 2024 14:57:01 +0100 Subject: [PATCH] :ambulance: hotfix wrong import path --- solid-watchparty/src/pages/LoginPage.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/solid-watchparty/src/pages/LoginPage.jsx b/solid-watchparty/src/pages/LoginPage.jsx index 23759f1..58f5640 100644 --- a/solid-watchparty/src/pages/LoginPage.jsx +++ b/solid-watchparty/src/pages/LoginPage.jsx @@ -6,6 +6,9 @@ import { useLocation } from 'react-router-dom'; import SWPageWrapper from '../components/SWPageWrapper' import SWLoginButton from '../components/SWLoginButton' +/* config imports */ +import { BASEPATH } from '../config.js' + const authOptions = { clientName: "solid-watchparty", }; @@ -14,7 +17,7 @@ export default function LoginPage() { const [oidcIssuer, setOidcIssuer] = useState("http://localhost:3000/"); const currentLocation = useLocation(); - const redirectLocation = (currentLocation.state?.from || "/menu"); + const redirectLocation = (currentLocation.state?.from || `${BASEPATH}/menu`); return (