Skip to content

Commit

Permalink
make presentation href include https://
Browse files Browse the repository at this point in the history
Not including https:// made the href relative, which ended up in some
unfortunate recursion :)
  • Loading branch information
tvannoy committed Oct 17, 2023
1 parent a2d396f commit cdc3ab6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/presentation-url.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
export default {
data: () => {
return {
href: window.location.host + window.location.pathname
href: window.location.origin + window.location.pathname,
url: window.location.host + window.location.pathname
};
},
}
Expand All @@ -13,5 +14,5 @@ export default {
</script>

<template>
<a :href="href">{{ href }}</a>
<a :href="href">{{ url }}</a>
</template>

0 comments on commit cdc3ab6

Please sign in to comment.