From ded8584fdd522b21a9612de4ab72c97cbdd2525e Mon Sep 17 00:00:00 2001 From: tamaina Date: Thu, 5 Jan 2023 17:18:32 +0900 Subject: [PATCH] =?UTF-8?q?miauth=E3=81=AEcallback=20url=E3=82=92searchPar?= =?UTF-8?q?ams.set=E3=81=A7=E4=BD=9C=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?=20(#9470)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/pages/miauth.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/frontend/src/pages/miauth.vue b/packages/frontend/src/pages/miauth.vue index 5de072cbf..11a8d3094 100644 --- a/packages/frontend/src/pages/miauth.vue +++ b/packages/frontend/src/pages/miauth.vue @@ -44,7 +44,6 @@ import MkSignin from '@/components/MkSignin.vue'; import MkButton from '@/components/MkButton.vue'; import * as os from '@/os'; import { $i, login } from '@/account'; -import { appendQuery, query } from '@/scripts/url'; import { i18n } from '@/i18n'; const props = defineProps<{ @@ -70,9 +69,9 @@ async function accept(): Promise { state = 'accepted'; if (props.callback) { - location.href = appendQuery(props.callback, query({ - session: props.session, - })); + const cbUrl = new URL(props.callback); + cbUrl.searchParams.set('session', props.session); + location.href = cbUrl.href; } }