File tree Expand file tree Collapse file tree
solid-watchparty/src/pages Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ import { useLocation } from 'react-router-dom';
66import SWPageWrapper from '../components/SWPageWrapper'
77import SWLoginButton from '../components/SWLoginButton'
88
9+ /* config imports */
10+ import { BASEPATH } from '../config.js'
11+
912const 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" >
You can’t perform that action at this time.
0 commit comments