From a2d396ffd234842b24b21ca9bf91bb68fc4c4fb0 Mon Sep 17 00:00:00 2001 From: Trevor Vannoy Date: Mon, 16 Oct 2023 22:54:03 -0600 Subject: [PATCH] fix url paths The pathname needs to be included when the page is not at the root of the host --- components/presentation-url.vue | 2 +- components/qrcode-vue.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/presentation-url.vue b/components/presentation-url.vue index 9eb35eb..3c1e6cf 100644 --- a/components/presentation-url.vue +++ b/components/presentation-url.vue @@ -3,7 +3,7 @@ export default { data: () => { return { - href: window.location.origin, + href: window.location.host + window.location.pathname }; }, } diff --git a/components/qrcode-vue.vue b/components/qrcode-vue.vue index 8441608..1293d18 100644 --- a/components/qrcode-vue.vue +++ b/components/qrcode-vue.vue @@ -7,7 +7,7 @@ export default { data() { return { - value: window.location.origin, + value: window.location.origin + window.location.pathname, size: 300, } },