Cambalab / vue-admin

An open source frontend Framework for building admin applications running in the browser on top of REST, using ES6 and Vue.js
GNU General Public License v3.0
132 stars 24 forks source link

Defaut redirect object should contemplate non-existent routes #201

Open sgobotta opened 4 years ago

sgobotta commented 4 years ago

Describe the bug As a user, if I don't assign a show view for a Resource, whenever I trigger a submit inside an edit view the router will try to redirect to a non-existent view. This is caused because the redirect object assigned by default assumes a show component will always exist.

To Reproduce Steps to reproduce the behavior:

  1. Instantiate a Resource with every view but a show view
  2. Go to your edit view and submit a modification
  3. The router will try to redirect to a show view

Expected behavior Vue-Admin should take into account redirecting to views that doesn't exist.

Suggestions: