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:
- Instantiate a Resource with every view but a
show view
- Go to your edit view and submit a modification
- 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:
- provide internal logic to match the
list view when another view doesn't exist?
- redirect to a 404 page?
Describe the bug
As a user, if I don't assign a
showview for aResource, whenever I trigger a submit inside aneditview the router will try to redirect to a non-existent view. This is caused because theredirectobject assigned by default assumes ashowcomponent will always exist.To Reproduce
Steps to reproduce the behavior:
showviewExpected behavior
Vue-Admin should take into account redirecting to views that doesn't exist.
Suggestions:
listview when another view doesn't exist?