Skip to content

Commit fe4edfc

Browse files
committed
🚑 hotfix wrong import path
1 parent d591c1c commit fe4edfc

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

solid-watchparty/src/pages/LoginPage.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import { useLocation } from 'react-router-dom';
66
import SWPageWrapper from '../components/SWPageWrapper'
77
import SWLoginButton from '../components/SWLoginButton'
88

9+
/* config imports */
10+
import { BASEPATH } from '../config.js'
11+
912
const authOptions = {
1013
clientName: "solid-watchparty",
1114
};
@@ -14,7 +17,7 @@ export default function LoginPage()
1417
{
1518
const [oidcIssuer, setOidcIssuer] = useState("http://localhost:3000/");
1619
const currentLocation = useLocation();
17-
const redirectLocation = (currentLocation.state?.from || "/menu");
20+
const redirectLocation = (currentLocation.state?.from || `${BASEPATH}/menu`);
1821
return (
1922
<SWPageWrapper className="flex justify-center items-center" mustBeAuthenticated={false}>
2023
<div className="w-1/2">

0 commit comments

Comments
 (0)