diff options
| author | sn0w <92278018+realsn0w@users.noreply.github.com> | 2022-06-03 14:22:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-03 21:22:03 +0900 |
| commit | df3bbfb4161ac53bdff8fbc5c78c4e1c8f5173f8 (patch) | |
| tree | 19b706cb597b9d86b67283e9a043b95122c5700a | |
| parent | fix(dev): no labels for l10n_develop (diff) | |
| download | sharkey-df3bbfb4161ac53bdff8fbc5c78c4e1c8f5173f8.tar.gz sharkey-df3bbfb4161ac53bdff8fbc5c78c4e1c8f5173f8.tar.bz2 sharkey-df3bbfb4161ac53bdff8fbc5c78c4e1c8f5173f8.zip | |
fix(client): correctly handle MiAuth URLs with query string (#8772)
| -rw-r--r-- | packages/client/src/pages/miauth.vue | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/client/src/pages/miauth.vue b/packages/client/src/pages/miauth.vue index 6e85b784ff..4032d7723e 100644 --- a/packages/client/src/pages/miauth.vue +++ b/packages/client/src/pages/miauth.vue @@ -42,6 +42,7 @@ import MkSignin from '@/components/signin.vue'; import MkButton from '@/components/ui/button.vue'; import * as os from '@/os'; import { login } from '@/account'; +import { appendQuery, query } from '@/scripts/url'; export default defineComponent({ components: { @@ -82,7 +83,9 @@ export default defineComponent({ this.state = 'accepted'; if (this.callback) { - location.href = `${this.callback}?session=${this.session}`; + location.href = appendQuery(this.callback, query({ + session: this.session + })); } }, deny() { |