Closed Sheeri closed 4 years ago
Hi @Sheeri can I take this one? I was looking at https://github.com/WildAid/o-fish-web/issues/63 so I've been familiar around these parts anyways
but since it's a good first issue, maybe it's better to leave it open for others who are new to the repo I'll let you decide :)
Hi @lenmorld - I'm SO GLAD you are still working on O-FISH! Now that hacktoberfest is over, I don't foresee a ton of new people randomly finding us :D I've assigned it to you
Describe the bug Search results for a vessel currently get redirected to the "Vessels" page for the search item, not the actual record clicked.
To Reproduce Steps to reproduce the behavior:
Log in
Make sure "All" is set in the search bar:
Put in a search term that will match at least one vessel
Click on the vessel that shows up in the results, e.g. here I searched for "boat" and will click on "My Boat":
The page that shows up is the vessel search page, not the individual boarding record. e.g. this is the page that shows up (it has a url of /#/vessels/null):
When it should be this (with a URL of https://wildaidsandbox-mxgfy.mongodbstitch.com/#/vessels/view/{"vessel.permitNumber":"12345","vessel.name":"My Boat"}):
Expected behavior Instead of redirecting to the vessels page, the search should redirect to the appropriate vessels/view page.