Merge pull request #1200 from Ikkibird/Ikkibird-fix-1194

Use a relative url with router-link (fixes: #1194)
This commit is contained in:
Kavin 2022-07-19 09:29:33 +05:30 committed by GitHub
commit 8e306ab311
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;