Skip to content

Commit

Permalink
🚑 hotfix wrong import path
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasnijs committed Feb 28, 2024
1 parent d591c1c commit fe4edfc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion solid-watchparty/src/pages/LoginPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
};
Expand All @@ -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 (
<SWPageWrapper className="flex justify-center items-center" mustBeAuthenticated={false}>
<div className="w-1/2">
Expand Down

0 comments on commit fe4edfc

Please sign in to comment.