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

Handle links to deleted records better #2558

Closed
maxpatiiuk opened this issue Dec 7, 2022 · 2 comments · Fixed by #3183
Closed

Handle links to deleted records better #2558

maxpatiiuk opened this issue Dec 7, 2022 · 2 comments · Fixed by #3183
Assignees
Labels
1 - Request Improvements or extensions to existing behavior

Comments

@maxpatiiuk
Copy link
Member

If the link refers to an existing record, but a non-existent record (i.e, because the record set was deleted), the form shows a 404 error.

http://localhost/specify/view/agent/3/?recordsetid=114

A better behavior would be to redirect the user out of the context of a record set.

@maxpatiiuk maxpatiiuk added the 1 - Request Improvements or extensions to existing behavior label Dec 7, 2022
@maxpatiiuk
Copy link
Member Author

Steps to reproduce the issue:

  1. Create a record set
  2. Create a record in a record set
  3. Copy the URL of the page
  4. Delete the record set (without deleting the record itself)
  5. Paste the copied URL
  6. It shows 404 page because record set does not exist. Instead, since the record still exists, it should redirect to the URL for viewing that resource outside of the record set

@specifysoftware
Copy link

This issue has been mentioned on Specify Community Forum. There might be relevant details there:

https://discourse.specifysoftware.org/t/specify-7-8-9-release-announcement/1131/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 - Request Improvements or extensions to existing behavior
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants