From 77468b07c58cfb8c20eb70d37573d7609266162f Mon Sep 17 00:00:00 2001 From: Henrik Askjer <henrik.askjer@uib.no> Date: Thu, 18 Nov 2021 17:15:23 +0100 Subject: [PATCH] fix link issue on dev --- src/components/ArticleFooter.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/ArticleFooter.vue b/src/components/ArticleFooter.vue index 6032ca95..e9a4a6e2 100644 --- a/src/components/ArticleFooter.vue +++ b/src/components/ArticleFooter.vue @@ -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(); -- GitLab