Redirect to view if permission failed on edit #5247

Closed
opened 2026-02-05 09:51:17 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @cod3monk on GitHub (Apr 7, 2025).

Describe the feature you'd like

When a user liks on an edit link to a page (e.g., some one sent it to the user), but does not have permission to edit it. Redirect to the public view of that page, if the permissions permit, while still presenting the user with the error message.

Currently the user is redirected to the home view, unable to find the page without self-interperting the slug in the URL.

Describe the benefits this would bring to existing BookStack users

We sometimes have users that copy a link while in edit view and expect other to be able to view the page.

Can the goal of this request already be achieved via other means?

nope

Have you searched for an existing open/closed issue?

  • I have searched for existing issues and none cover my fundamental request

How long have you been using BookStack?

1 to 5 years

Additional context

No response

Originally created by @cod3monk on GitHub (Apr 7, 2025). ### Describe the feature you'd like When a user liks on an edit link to a page (e.g., some one sent it to the user), but does not have permission to edit it. Redirect to the public view of that page, if the permissions permit, while still presenting the user with the error message. Currently the user is redirected to the home view, unable to find the page without self-interperting the slug in the URL. ### Describe the benefits this would bring to existing BookStack users We sometimes have users that copy a link while in edit view and expect other to be able to view the page. ### Can the goal of this request already be achieved via other means? nope ### Have you searched for an existing open/closed issue? - [x] I have searched for existing issues and none cover my fundamental request ### How long have you been using BookStack? 1 to 5 years ### Additional context _No response_
OVERLORD added the 🔨 Feature Request💆 UX labels 2026-02-05 09:51:17 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Apr 7, 2025):

Thanks for the suggestion @cod3monk, sounds like a nice little UX improvement so have assigned to the next feature release.

Implementation note: We'll need to only redirect if we first confirm the user has view permission, otherwise this could be abused as a check for existence of non-permitted content.

@ssddanbrown commented on GitHub (Apr 7, 2025): Thanks for the suggestion @cod3monk, sounds like a nice little UX improvement so have assigned to the next feature release. Implementation note: We'll need to only redirect if we first confirm the user has view permission, otherwise this could be abused as a check for existence of non-permitted content.
Author
Owner

@ssddanbrown commented on GitHub (May 24, 2025):

This has now been added in 454b152b95, and will be part of the next feature release.
Thanks again @cod3monk!

@ssddanbrown commented on GitHub (May 24, 2025): This has now been added in 454b152b9570f7e5cf13757464a4af3d5ffd1649, and will be part of the next feature release. Thanks again @cod3monk!
Author
Owner

@cod3monk commented on GitHub (May 24, 2025):

Yay :) Thanks for implementing it!

@cod3monk commented on GitHub (May 24, 2025): Yay :) Thanks for implementing it!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5247