Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defaut redirect object should contemplate non-existent routes #201

Open
sgobotta opened this issue Feb 2, 2020 · 0 comments
Open

Defaut redirect object should contemplate non-existent routes #201

sgobotta opened this issue Feb 2, 2020 · 0 comments
Labels
bug Something isn't working ux

Comments

@sgobotta
Copy link
Member

sgobotta commented Feb 2, 2020

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:

  • provide internal logic to match the list view when another view doesn't exist?
  • redirect to a 404 page?
@sgobotta sgobotta added bug Something isn't working ux labels Feb 2, 2020
@sgobotta sgobotta added this to To do in Current Tasks via automation Feb 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ux
Projects
Current Tasks
  
To do
Development

No branches or pull requests

1 participant