Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit555a98f

Browse files
Kira-Pilotkylecarbs
authored andcommitted
fix: omit url params on login (#1666)
resolves#1282
1 parent78e8102 commit555a98f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎site/src/components/RequireAuth/RequireAuth.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ export const RequireAuth: React.FC<RequireAuthProps> = ({ children }) => {
1313
constxServices=useContext(XServiceContext)
1414
const[authState]=useActor(xServices.authXService)
1515
constlocation=useLocation()
16-
constredirectTo=embedRedirect(location.pathname)
17-
16+
constnavigateTo=location.pathname==="/" ?"/login" :embedRedirect(location.pathname)
1817
if(authState.matches("signedOut")){
19-
return<Navigateto={redirectTo}/>
18+
return<Navigateto={navigateTo}/>
2019
}elseif(authState.hasTag("loading")){
2120
return<FullScreenLoader/>
2221
}else{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp