Skip to content

Commit 5a4fa4c

Browse files
fix: update redirect url to go to the home page
1 parent 0b60bad commit 5a4fa4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/components/Menu/UserLoginMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const UserLoginMenu: React.FC<UserLoginMenuProps> = ({ toggleMenu }) => {
3333

3434
const onLogin = (e: React.MouseEvent<HTMLButtonElement>) => {
3535
e.preventDefault();
36-
window.location.href = `${SP_API}/login/sso?redirect_url=${encodeURIComponent(window.location.href)}`;
36+
window.location.href = `${SP_API}/login/sso?redirect_url=${encodeURIComponent(window.location.origin)}`;
3737
};
3838

3939
return user ? (

0 commit comments

Comments
 (0)