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

fikser meta#246

parent 283cef44
No related branches found
No related tags found
No related merge requests found
...@@ -229,6 +229,7 @@ export default { ...@@ -229,6 +229,7 @@ export default {
navigate_to_search(self, self.$route.params.query) navigate_to_search(self, self.$route.params.query)
} }
else { else {
self.lang = self.$route.params.lang || 'bob,nob'
self.waiting_for_articles = false self.waiting_for_articles = false
history.replaceState({article: self.article, search_results: self.search_results, lang: self.lang}, '') history.replaceState({article: self.article, search_results: self.search_results, lang: self.lang}, '')
} }
......
...@@ -17,7 +17,7 @@ const router = new VueRouter({ ...@@ -17,7 +17,7 @@ const router = new VueRouter({
routes: [ routes: [
{ {
name: 'root', name: 'root',
path: '/', path: '/:lang?',
component: App }, // No props, no nothing component: App }, // No props, no nothing
{ {
name: 'word', name: 'word',
......
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