File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ const ProtectedRoute = ({
72
72
return null ;
73
73
}
74
74
// redirect user to the right page based on session status
75
- return loggedIn ? < Component /> : < Redirect to = { { pathname : "/ login" } } /> ;
75
+ return loggedIn ? < Component /> : < Redirect to = { { pathname : "login" } } /> ;
76
76
} ;
77
77
78
78
const mapState = ( state : AppState ) => ( {
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ const Routes = () => {
46
46
children = { ( routerProps ) => (
47
47
< div
48
48
style = { {
49
- backgroundImage : `url('/ images/background-wave-orig2.svg'), url('/ images/background.svg')` ,
49
+ backgroundImage : `url('images/background-wave-orig2.svg'), url('images/background.svg')` ,
50
50
backgroundPosition : "center 250px, center center" ,
51
51
backgroundRepeat : "no-repeat" ,
52
52
backgroundSize : "2547px 980px,cover" ,
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export class API {
37
37
clearSession ( ) ;
38
38
// Refresh the whole page to ensure cache is clear
39
39
// and we dont end on an infinite loop
40
- window . location . href = "/ login" ;
40
+ window . location . href = "login" ;
41
41
return ;
42
42
}
43
43
return this . onError ( err ) ;
@@ -71,7 +71,7 @@ export class API {
71
71
return Promise . reject ( throwMessage ) ;
72
72
} else {
73
73
clearSession ( ) ;
74
- window . location . href = "/ login" ;
74
+ window . location . href = "login" ;
75
75
}
76
76
}
77
77
}
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ const Menu = ({
107
107
userLoggedIn ( false ) ;
108
108
localStorage . setItem ( "userLoggedIn" , "" ) ;
109
109
resetSession ( ) ;
110
- history . push ( "/ login" ) ;
110
+ history . push ( "login" ) ;
111
111
} ;
112
112
api
113
113
. invoke ( "POST" , `/api/v1/logout` )
Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ const LoginCallback = ({ classes }: ILoginCallBackProps) => {
175
175
</ Typography >
176
176
< Button
177
177
component = { "a" }
178
- href = "/ login"
178
+ href = "login"
179
179
type = "submit"
180
180
variant = "contained"
181
181
color = "primary"
You can’t perform that action at this time.
0 commit comments