Skip to content

Commit

Permalink
fix url paths
Browse files Browse the repository at this point in the history
The pathname needs to be included when the page is not at the root of
the host
  • Loading branch information
tvannoy committed Oct 17, 2023
1 parent 4a310c5 commit a2d396f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/presentation-url.vue
Expand Up @@ -3,7 +3,7 @@
export default {
data: () => {
return {
href: window.location.origin,
href: window.location.host + window.location.pathname
};
},
}
Expand Down
2 changes: 1 addition & 1 deletion components/qrcode-vue.vue
Expand Up @@ -7,7 +7,7 @@
export default {
data() {
return {
value: window.location.origin,
value: window.location.origin + window.location.pathname,
size: 300,
}
},
Expand Down

0 comments on commit a2d396f

Please sign in to comment.