diff --git a/src/App.vue b/src/App.vue index c73c49933b6353c17d16c6415f333fda9f8b0afe..4695fe2dde8b7d8c1c0fc9087c541031f2574a1b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -154,7 +154,7 @@ export default { this.$refs.search.value = '' document.activeElement.blur() if(event.body){ - this.$router.push('/' + event.dictionary + '/' + event.article_id + '#' + event.match) + this.$router.push('/' + event.dictionary + '/' + event.article_id + '/' + event.match) this.search_results = [] this.article = event history.replaceState({article: this.article, search_results: this.search_results, lang: this.lang}, '') diff --git a/src/main.js b/src/main.js index 81f06a8942aeb4939db098b568e680a3bf72cec1..03ca4fcc842fa2f444a34bf7a66b431be9fe2395 100644 --- a/src/main.js +++ b/src/main.js @@ -21,7 +21,7 @@ const router = new VueRouter({ component: App }, // No props, no nothing { name: 'lookup', - path: '/:lang/:id(\\d+)', + path: '/:lang/:id(\\d+)/:lemma?', component: App, props: true }, // Pass route.params to props {