diff --git a/src/components/ArticleFooter.vue b/src/components/ArticleFooter.vue
index 6032ca95a0057d3a8cdea073b5825e800ed8f239..e9a4a6e27413257d1b511630833ef3f24a59d8bf 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();