diff --git a/src/components/Article.vue b/src/components/Article.vue index 4cd5592a18d0ebadbbad2652ad71d459460006ee..7dafe6410fd911b5d1c42b562453963e5016c577 100644 --- a/src/components/Article.vue +++ b/src/components/Article.vue @@ -112,7 +112,8 @@ export default { } }, share_link: function() { - return 'https://beta.ordbok.uib.no/' + this.dictionary + '/' + this.article.article_id + '/' + encodeURIComponent(this.article.lemmas[0].lemma) + let host = window.location.hostname === 'localhost'? 'https://dev.ordbok.uib.no' : 'https://' + window.location.host + return host + "/" + this.dictionary + '/' + this.article.article_id + '/' + encodeURIComponent(this.article.lemmas[0].lemma) }, dictionary: function() { return this.article.dictionary