Skip to content

Commit 18b3956

Browse files
authored
Set absolute url for redirect (#107586)
1 parent 6380708 commit 18b3956

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/dashboard/me/security-social-logins/apple-login.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Button } from '@wordpress/components';
44
import { __ } from '@wordpress/i18n';
55
import { MouseEvent, useCallback, useEffect, useMemo, useState } from 'react';
66
import { useAnalytics } from '../../app/analytics';
7-
import { wpcomLink } from '../../utils/link';
7+
import { dashboardLink, wpcomLink } from '../../utils/link';
88
import { getSocialServiceResponse } from './utils';
99
import type { SocialLoginButtonProps, AppleClient } from './types';
1010

@@ -49,7 +49,7 @@ export default function AppleLogin( {
4949
redirectURI: wpcomLink( '/start/user' ),
5050
state: JSON.stringify( {
5151
oauth2State,
52-
originalUrlPath: window?.location?.pathname,
52+
originalUrlPath: dashboardLink( window?.location?.pathname ),
5353
} ),
5454
} );
5555

0 commit comments

Comments
 (0)