diff options
| author | かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> | 2023-10-28 07:57:10 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-28 07:57:10 +0900 |
| commit | aa31b6c65b2dca22fb1a35bdd4fd9ed00e8f83ea (patch) | |
| tree | 3e75f923a75d5a00ee2a82a9afa26b0b430a4e7c /packages | |
| parent | fix(frontend): Intlが対応していない言語の場合はフォールバ... (diff) | |
| download | misskey-aa31b6c65b2dca22fb1a35bdd4fd9ed00e8f83ea.tar.gz misskey-aa31b6c65b2dca22fb1a35bdd4fd9ed00e8f83ea.tar.bz2 misskey-aa31b6c65b2dca22fb1a35bdd4fd9ed00e8f83ea.zip | |
fix(frontend): MkGoogleのクエリを正しくエンコードできるように修正 (#12164)
* (fix)MkGoogleで一部キーワードのURLエンコードに失敗する
* Update Changelog
---------
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/frontend/src/components/MkGoogle.vue | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/frontend/src/components/MkGoogle.vue b/packages/frontend/src/components/MkGoogle.vue index b899656e4f..efbd775f5c 100644 --- a/packages/frontend/src/components/MkGoogle.vue +++ b/packages/frontend/src/components/MkGoogle.vue @@ -21,7 +21,9 @@ const props = defineProps<{ const query = ref(props.q); const search = () => { - window.open(`https://www.google.com/search?q=${query.value}`, '_blank'); + const sp = new URLSearchParams(); + sp.append('q', query.value); + window.open(`https://www.google.com/search?${sp.toString()}`, '_blank'); }; </script> |