I'm at the start of a new project and I'm trying to render a list of links. My links urls are stored in a table under the format "www.sitename.com". They render alright, but when I click on one of them, instead of being redirected to "www.sitename.com", what I get is this: "localhost/8080/www.sitename.com". So, if I understand correctly, it means that VueJS concatenates by default the :href="" with the current url? How do I prevent this?
I solved my issue by hard-coding a 'https://' substring into my Vue component (see below), but I believe there might be better ways to fix this behavior. Any input is welcome.
<template>
<div :key="link.id">
<a
:href="'https://' + link.url"
target="_blank"
>
{{link.title}}
</a>
</div>
</template>
<script>
export default {
name: "Link",
props: ["link"]
};
</script>
´´´
