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

Deleting the current item should lead back to the last valid page, e.g. a list of items #5001

Open
olivertwistor opened this issue Jun 25, 2024 · 0 comments

Comments

@olivertwistor
Copy link

Webtrees version: 2.1.20

When a user views an item page (e.g. a person), opens the Edit dropdown menu and chooses Delete (I use a translated Webtrees, so it might be named something else like Remove), the item is removed, but instead of landing on a valid page (e.g. a list of persons), the user remains on the same item page, which doesn't exist anymore and the user will get an error message. This is misleading because the user might think they have been logged out or there is something wrong with their user permissions (because of the broad error message, see Actual behaviour).

Steps to reproduce

  1. Create a new tree.
  2. Create a new person.
  3. Go to that person's item page (index.php?route=/.../individual/...)
  4. In the Edit dropdown, choose Delete to delete the person. Confirm the choice.

Actual behaviour

The page the user lands on is showing an error message that says that this person doesn't exist anymore or the user lacks permission to view the page.

Expected behaviour

The page the user lands on should be a list of persons, or the last viewed person (connected to the deleted person or not), or the home page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant