redirect back vuejs from method code example
Example 1: vue router push
//Syntax - this.$router.push(path);
this.$router.push("/path");
Example 2: navbar route with params vue
//if we have a route that admits params via url:
{path : '/page/:id?', name='page', component: Page},
//we can edit the url to show the params we want like this:
<router-link :to="{name: 'page', params:{id: 'hello'}}"> </router-link>