diff --git a/src/pages/auth-callback/DiscordAuthCallback.tsx b/src/pages/auth-callback/DiscordAuthCallback.tsx index 4e52981d..f67d8009 100644 --- a/src/pages/auth-callback/DiscordAuthCallback.tsx +++ b/src/pages/auth-callback/DiscordAuthCallback.tsx @@ -117,7 +117,7 @@ const DiscordAuthCallbackPage: FunctionComponent = () => return setError('select guild') } - const redirectUri = new URL('/tokenize/discord') + const redirectUri = new URL('/tokenize/discord', location.origin) if (isPopup) { redirectUri.searchParams.set('popup', 'true') } diff --git a/src/pages/auth-callback/YouTubeAuthCallback.tsx b/src/pages/auth-callback/YouTubeAuthCallback.tsx index 4790950a..592c6938 100644 --- a/src/pages/auth-callback/YouTubeAuthCallback.tsx +++ b/src/pages/auth-callback/YouTubeAuthCallback.tsx @@ -93,7 +93,7 @@ const YouTubeAuthCallbackPage: FunctionComponent = () => setAssetName(youtubeData.pop().channelId) setPersonalAccessToken(accessToken) - const redirectUri = new URL('/tokenize/youtube') + const redirectUri = new URL('/tokenize/youtube', location.origin) if (isPopup) { redirectUri.searchParams.set('popup', 'true') }