File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ function HomeContent() {
3535
3636 useEffect ( ( ) => {
3737 if ( ! isLoading && ! isAuthenticated ) {
38- router . push ( '/login' )
38+ router . push ( '/login/ ' )
3939 }
4040 } , [ isLoading , isAuthenticated , router ] )
4141
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ export function AuthProvider({ children }: { children: ReactNode }) {
108108 setUser ( userData ) ;
109109 await refreshActiveRepository ( ) ;
110110 toast . success ( 'Authenticated. Opening OpenLinear...' ) ;
111- if ( pathname === '/login' ) {
111+ if ( pathname === '/login' || pathname === '/login/' ) {
112112 router . replace ( '/' ) ;
113113 }
114114 } catch ( err ) {
@@ -193,8 +193,8 @@ export function AuthProvider({ children }: { children: ReactNode }) {
193193 setUser ( null ) ;
194194 setActiveRepository ( null ) ;
195195 toast . error ( 'Session expired. Please sign in again.' ) ;
196- if ( pathname !== '/login' && pathname !== '/' ) {
197- router . push ( '/login' ) ;
196+ if ( pathname !== '/login' && pathname !== '/login/' && pathname !== '/ ') {
197+ router . push ( '/login/ ' ) ;
198198 }
199199 } ;
200200
You can’t perform that action at this time.
0 commit comments