diff --git a/src/App.vue b/src/App.vue index 37e139412a784ef07684667911b8af56323a4ad1..442599958c01e59745691f8fe7c58f19be813cb3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,10 +1,10 @@ <template> <main id="app"> <header> - <h1>Ordbøkene</h1> + <h1><a href="/">Ordbøkene</a></h1> <p class="about-link"><a href="#">OM ORDBØKENE</a></p> - <p class="sub-title">Bokmåls- og Nynorskordboka</p> - <p class="mission-statement">Skrivemåte og bøying i tråd med norsk rettskriving </p> + <p class="sub-title"><a href="/">Bokmål- og Nynorskordboka</a></p> + <p class="mission-statement"><a href="/">Skrivemåte og bøying i tråd med norsk rettskriving </a></p> </header> <div class="search_container"> <autocomplete :debounceTime="100" :auto-select="true" :search="search" @submit="select_result" placeholder="søk..." ref="search"> @@ -184,12 +184,13 @@ export default { this.search_results = event.articles this.article = {lemmas: [], body:{pronunciation: [], definitions: [], etymology: []}} history.replaceState({article: this.article, search_results: this.search_results, lang: this.lang}, '') - this.$plausible.trackEvent('dropdown selection', {props: {query: event.q, dictionary: event.dictionary, match: event.match}}) + this.$plausible.trackEvent('dropdown selection', {props: {query: event.q, match: event.match}}) }else{ this.waiting_for_articles = true this.article = {lemmas: [], body:{pronunciation: [], definitions: [], etymology: []}} this.$router.push(`/${this.lang}/search/${event.q}`) navigate_to_search(this, event.q) + this.$plausible.trackEvent('dropdown selection', {props: {query: event.q, match: '<fritekstsøk>'}}) } }, article_link_click: function(item) { @@ -237,7 +238,6 @@ export default { }, watch: { $route() { - console.log(this.$route.params.lang) this.$plausible.trackEvent('language', {props: {code: this.$route.params.lang}}) } } @@ -280,6 +280,11 @@ p.about-link { float: right; } +header a { + color: inherit; + text-decoration: none; +} + p.about-link > a{ text-decoration: none; border-bottom: solid #BC477B 4px;