From 227567326efae9b4550294f560f1dc6d92b168be Mon Sep 17 00:00:00 2001 From: Ikkibird <109056821+Ikkibird@users.noreply.github.com> Date: Mon, 11 Jul 2022 04:34:46 +0000 Subject: [PATCH] fix: use a relative url with router-link Fixes: #1194 --- src/components/WatchVideo.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/WatchVideo.vue b/src/components/WatchVideo.vue index 08eb0ad7..49fd0a1f 100644 --- a/src/components/WatchVideo.vue +++ b/src/components/WatchVideo.vue @@ -251,7 +251,7 @@ export default { toggleListenUrl(_this) { const url = new URL(window.location.href); url.searchParams.set("listen", _this.isListening ? "0" : "1"); - return url.href; + return url.pathname + url.search; }, isEmbed(_this) { return String(_this.$route.path).indexOf("/embed/") == 0;