Commit 77468b07 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

fix link issue on dev

parent 3989f7f8
......@@ -54,7 +54,7 @@
</template>
<script>
const host = window.location.hostname === 'localhost'? 'https://dev.ordbok.uib.no/' : window.location.href
const host = window.location.hostname === 'localhost'? 'https://dev.ordbok.uib.no' : window.location.hostname
export default {
name: 'ArticleFooter',
......@@ -86,7 +86,8 @@ export default {
})
},
create_link() {
return host + this.article.dictionary + '/' + this.article.article_id + '/' + encodeURIComponent(this.article.lemmas[0].lemma)
console.log(host)
return host + '/' + this.article.dictionary + '/' + this.article.article_id + '/' + encodeURIComponent(this.article.lemmas[0].lemma)
},
get_citation_info() {
let date = new Date();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment