Skip to content
Snippets Groups Projects
Commit 13322c36 authored by Ole Voldsæter's avatar Ole Voldsæter
Browse files

tillater /{lemma} på slutten av artikkel-url for å gjøre dem mer lesbare

parent 4cbb7ebf
No related branches found
No related tags found
No related merge requests found
......@@ -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}, '')
......
......@@ -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
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment