Skip to content
Snippets Groups Projects
Commit 5fe4d0fb authored by Timothee P's avatar Timothee P :sunflower:
Browse files

update the page at query changes when navigating back or forward in browser

parent aa2d0478
No related branches found
No related tags found
No related merge requests found
......@@ -154,6 +154,14 @@ export default {
]),
},
watch: {
'$route.query'(newValue, oldValue) {
if (newValue !== oldValue) { //* Navigate back or forward to the previous or next URL
this.initPage(); //* doesn't update the page at query changes, thus it is done manually here
}
},
},
created() {
if (this.$route.params.slug_type_signal) {
this.SET_CURRENT_FEATURE_TYPE_SLUG(this.$route.params.slug_type_signal);
......
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