parse-dashboard
parse-dashboard copied to clipboard
Cannot route to nested relations
New Issue Checklist
- [X] I am not disclosing a vulnerability.
- [X] I am not just asking a question.
- [X] I have searched through existing issues.
- [X] I can reproduce the issue with the latest versions of Parse Server and Parse Dashboard.
Issue Description
The routing to view relations is incorrect if you try to view them from another list of relations.
Steps to reproduce
On a class with a relation, select "View Relation" on a relation of classes that also has relations. In this list of relations, try to select "View Relation" again.
Actual Outcome
Clicking the first "View Relation" gives us the route of the format /browser/Class1/class1objectID/Class2Relation. Clicking the second "View Relation" on the class2 object gives us the route of format /browser/Class1/class2objectID/Class3Relation
Expected Outcome
Clicking the second "View Relation" on the class2 object should give us the route of format /browser/Class2/class2objectID/Class3Relation instead.
Environment
Dashboard
- Parse Dashboard version:
4.1.1-alpha.1 - Browser (Safari, Chrome, Firefox, Edge, etc.):
Edge - Browser version:
100.0.1185.29
Server
- Parse Server version:
4.2.0 - Operating system:
Linux - Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc):
Heroku
Database
- System (MongoDB or Postgres):
MongoDB - Database version:
4.4 - Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc):
MongoDB Atlas
Logs
Thanks for opening this issue!
- 🚀 You can help us to fix this issue faster by opening a pull request with a failing test. See our Contribution Guide for how to make a pull request, or read our New Contributor's Guide if this is your first time contributing.
🎉 This change has been released in version 5.2.0-alpha.8
🎉 This change has been released in version 5.2.0-beta.2
🎉 This change has been released in version 5.2.0