title: Redirect Vue-Router on error in props function
body: <p>I have this route definition: </p>
  
  <pre><code>{name: "article", path: "/article/:id", component: Article, props: true}
  </code></pre>
  
  <p>And this component (I use Typescript and vue-class-component): </p>
  
  <pre><code>@Component({
      props: {
          id: Number
      }
  })
  class Article extends Vue {
      id: Number;
  }
  </code></pre>
  
  <p>Of course, this give me this warn</p>
  
  <pre><code>[Vue warn]: Invalid prop: type check failed for prop "id". Expected Number, got String.
  </code></pre>
  
  <p>So i update my route definition with a props function </p>
  
  <pre><code>name: "article", 
  path: "/article/:id", 
  component: Article, 
  props:(route:Route) =&gt; {
      const id = parseInt(route.params.id);
  
      if(isNaN(id))
          throw new Error("id param should be a number")
  
      return {id}
  }
  </code></pre>
  
  <p>This works, but i don't find how to redirect user to a specific page if he gave me a "bad" value for id param ("/article/toto" for example)</p>
  
  <p>router.onError seems don't works here </p>
  
  <p>Navigation guards, where in can use next(error) can't modify params/props</p>
  
  <p>Someone have any idea ?</p>