File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
UserProfile/UserSettings/UserLinkedAccountsSettings Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,10 @@ export default function OidcLoginButton({
2929 const redirectToLogin = useCallback ( async ( ) => {
3030 setLoading ( true ) ;
3131 try {
32- await initiateOidcLogin ( provider . slug , window . location . href ) ;
32+ await initiateOidcLogin (
33+ provider . slug ,
34+ new URL ( window . location . pathname , window . location . origin ) . toString ( )
35+ ) ;
3336 } catch ( e ) {
3437 setLoading ( false ) ;
3538 const errorCode = ( e as { response ?: { data ?: { error ?: string } } } )
Original file line number Diff line number Diff line change @@ -199,7 +199,10 @@ const UserLinkedAccountsSettings = () => {
199199 name : p . name ,
200200 action : async ( ) => {
201201 try {
202- await initiateOidcLogin ( p . slug , window . location . href ) ;
202+ await initiateOidcLogin (
203+ p . slug ,
204+ new URL ( window . location . pathname , window . location . origin ) . toString ( )
205+ ) ;
203206 } catch {
204207 setError ( intl . formatMessage ( messages . errorUnknown ) ) ;
205208 }
You can’t perform that action at this time.
0 commit comments