[Feature Request]: public access #2596

Closed
opened 2026-02-05 04:35:17 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @Statium on GitHub (Jan 24, 2022).

Describe the feature you'd like

When public access is enabled and an unregistered user goes to pages for which public access is closed, an error occurs stating that the page was not found and it is clearly not clear that authorization is needed to view it. Would it be possible to add a feature so that when you go to such pages, the authorization page opens?

Describe the benefits this feature would bring to BookStack users

A cleaner interface for inexperienced users.

Additional context

No response

Originally created by @Statium on GitHub (Jan 24, 2022). ### Describe the feature you'd like When public access is enabled and an unregistered user goes to pages for which public access is closed, an error occurs stating that the page was not found and it is clearly not clear that authorization is needed to view it. Would it be possible to add a feature so that when you go to such pages, the authorization page opens? ### Describe the benefits this feature would bring to BookStack users A cleaner interface for inexperienced users. ### Additional context _No response_
OVERLORD added the 🔨 Feature Request:cat2:🐈 Possible duplicate labels 2026-02-05 04:35:17 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jan 24, 2022):

Hi @Statium, This has already been requested in #2606. Please see that conversation chain for the reasoning we don't auto-redirect, and for potential workarounds.

Since that issue was closed I did make it easier to customize the not found wording, via the theme system, by extracting the text to its own view: https://github.com/BookStackApp/BookStack/blob/master/resources/views/errors/parts/not-found-text.blade.php

@ssddanbrown commented on GitHub (Jan 24, 2022): Hi @Statium, This has already been requested in #2606. Please see that conversation chain for the reasoning we don't auto-redirect, and for potential workarounds. Since that issue was closed I did make it easier to customize the not found wording, via the theme system, by extracting the text to its own view: https://github.com/BookStackApp/BookStack/blob/master/resources/views/errors/parts/not-found-text.blade.php
Author
Owner

@ssddanbrown commented on GitHub (Jan 24, 2022):

Will therefore close this off as a duplicate.

@ssddanbrown commented on GitHub (Jan 24, 2022): Will therefore close this off as a duplicate.
Author
Owner

@Statium commented on GitHub (Jan 25, 2022):

In #2606 the method is not working. I don't use ldap auth. Can you tell me how to make a 404 redirect when hitting such a page?

@Statium commented on GitHub (Jan 25, 2022): In #2606 the method is not working. I don't use ldap auth. Can you tell me how to make a 404 redirect when hitting such a page?
Author
Owner

@ssddanbrown commented on GitHub (Jan 25, 2022):

@Statium How far did you get with it? Did you get the theme system working?

@ssddanbrown commented on GitHub (Jan 25, 2022): @Statium How far did you get with it? Did you get the theme system working?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#2596