Request: Books page as application home page #522

Closed
opened 2026-02-04 20:43:12 +03:00 by OVERLORD · 12 comments
Owner

Originally created by @jonathanadams on GitHub (Dec 12, 2017).

Originally assigned to: @Abijeet on GitHub.

For Feature Requests

Desired Feature: Allow the application homepage to be set to /books?

Originally created by @jonathanadams on GitHub (Dec 12, 2017). Originally assigned to: @Abijeet on GitHub. ### For Feature Requests Desired Feature: Allow the application homepage to be set to /books?
OVERLORD added the 🛠️ Enhancement label 2026-02-04 20:43:12 +03:00
Author
Owner

@Abijeet commented on GitHub (Dec 14, 2017):

@jonathanadams - I'm don't know if this will be implemented but depending on which server you are using (nginx, Apache or IIS) you could set this up via a redirection.

Though this would mean that you will not be able to access the current homepage.

@Abijeet commented on GitHub (Dec 14, 2017): @jonathanadams - I'm don't know if this will be implemented but depending on which server you are using (nginx, Apache or IIS) you could set this up via a redirection. Though this would mean that you will not be able to access the current homepage.
Author
Owner

@aljawaid commented on GitHub (Dec 24, 2017):

It would be better if a single book can be assigned as the application homepage (before/after loggin in). It would also be beneficial, if we could assign one or more books so that the user can land on them books or direct onto the assigned book (if just one) when he/she logs in.

Example (purely ideas):
User X is temporary staff and only has access to procedures manual (one book). User logs in and is only directed to homepage of that manual.
User Y is temporary senior staff and has 4 books assigned to him. User logs in and is shown a list of books assigned to his login.
User Z is admin/default. Current system of v0.19 default settings apply to this user.

@aljawaid commented on GitHub (Dec 24, 2017): It would be better if a single book can be assigned as the application homepage (before/after loggin in). It would also be beneficial, if we could assign one or more books so that the user can land on them books or direct onto the assigned book (if just one) when he/she logs in. Example (purely ideas): User X is temporary staff and only has access to procedures manual (one book). User logs in and is only directed to homepage of that manual. User Y is temporary senior staff and has 4 books assigned to him. User logs in and is shown a list of books assigned to his login. User Z is admin/default. Current system of v0.19 default settings apply to this user.
Author
Owner

@olenoerby commented on GitHub (Dec 25, 2017):

Thumbs up for user specifik settings and ability to set a global configuration dictating settings for all users by the admin.

@olenoerby commented on GitHub (Dec 25, 2017): Thumbs up for user specifik settings and ability to set a global configuration dictating settings for all users by the admin.
Author
Owner

@sorvani commented on GitHub (Feb 21, 2018):

v0.20 has the ability to select a page as the default homepage, and that is cool, but setting /books to default would be better for our use case.

@sorvani commented on GitHub (Feb 21, 2018): v0.20 has the ability to select a page as the default homepage, and that is cool, but setting /books to default would be better for our use case.
Author
Owner

@sorvani commented on GitHub (Feb 21, 2018):

@Abijeet the current home page is only useful if you want to go to something you have recently done or that someone else has recently done.

But often I will be going to a specific book to get to a specific page. It may well not be in the recent lists once my wiki is fully populated.
image

@sorvani commented on GitHub (Feb 21, 2018): @Abijeet the current home page is only useful if you want to go to something you have recently done or that someone else has recently done. But often I will be going to a specific book to get to a specific page. It may well not be in the recent lists once my wiki is fully populated. ![image](https://user-images.githubusercontent.com/3302372/36449851-b685183c-1651-11e8-9b68-435e6ef5c667.png)
Author
Owner

@olenoerby commented on GitHub (Feb 22, 2018):

I use BookStack as a private documentation wiki and have a lot of users set up with different access controls to different books, so not all users have access to all books, representing different locations.

However, when people log in, they're presented with a rather unscenic and confusing frontpage with changes and new pages - where it would be easier if they had direct access to the list of books / households they have read access to.

This is why I request the feature to set /books as homepage upon login.

@olenoerby commented on GitHub (Feb 22, 2018): I use BookStack as a private documentation wiki and have a lot of users set up with different access controls to different books, so not all users have access to all books, representing different locations. However, when people log in, they're presented with a rather unscenic and confusing frontpage with changes and new pages - where it would be easier if they had direct access to the list of books / households they have read access to. This is why I request the feature to set /books as homepage upon login.
Author
Owner

@pierre-le commented on GitHub (Mar 12, 2018):

A quick and dirty workaround could be to add a rule in Nginx (or whichever web server you're using) to redirect requests from the "Dashboard" to /books.
Using Nginx:

location = / {
    rewrite ^/$ https://<your_url>/books redirect;
}
@pierre-le commented on GitHub (Mar 12, 2018): A quick and dirty workaround could be to add a rule in Nginx (or whichever web server you're using) to redirect requests from the "Dashboard" to `/books`. Using Nginx: ``` location = / { rewrite ^/$ https://<your_url>/books redirect; } ```
Author
Owner

@sorvani commented on GitHub (Mar 15, 2018):

That breaks things unless you add a location path for every other path such as /logon /css /libs, etc.

@sorvani commented on GitHub (Mar 15, 2018): That breaks things unless you add a location path for every other path such as /logon /css /libs, etc.
Author
Owner

@pierre-le commented on GitHub (Mar 15, 2018):

@sorvani No, as this rule is an exact match on the home page, which is an HTML page. You just need to place that rule on top of any other location rule.

And... I can certify that this workaround works fine bc we're using it in production right now :)

@pierre-le commented on GitHub (Mar 15, 2018): @sorvani No, as this rule is an exact match on the home page, which is an HTML page. You just need to place that rule on top of any other location rule. And... I can certify that this workaround works fine bc we're using it in production right now :)
Author
Owner

@Abijeet commented on GitHub (Apr 15, 2018):

@ssddanbrown, I'd like to take a crack at this.

I've been trying to figure out how to fit this into the current UI and for now this is what I've come up with,

screenshot-2018-4-16 settings bookstack

I've tried to merge it with the existing Application Homepage setting but I think its still confusing.

The other option would be to somehow merge it into the current page selector that we have. Maybe at the bottom of the popup.

screenshot-2018-4-16 settings bookstack 1

Note that the popup has a couple of minor quirks that I'll fix along with this merge request.

One more question, should we simply redirect the user to the books/list page or create a new custom template similar to the one we've done for custom page selected as homepage with the same sidebar?

@Abijeet commented on GitHub (Apr 15, 2018): @ssddanbrown, I'd like to take a crack at this. I've been trying to figure out how to fit this into the current UI and for now this is what I've come up with, ![screenshot-2018-4-16 settings bookstack](https://user-images.githubusercontent.com/1685517/38782036-50ffb12c-410b-11e8-8806-1d77fa8c26b3.png) I've tried to merge it with the existing **Application Homepage** setting but I think its still confusing. The other option would be to somehow merge it into the current page selector that we have. Maybe at the bottom of the popup. ![screenshot-2018-4-16 settings bookstack 1](https://user-images.githubusercontent.com/1685517/38782054-964a9616-410b-11e8-9263-079729953f65.png) Note that the popup has a couple of minor quirks that I'll fix along with this merge request. One more question, should we simply redirect the user to the books/list page or create a new custom template similar to the one we've done for custom page selected as homepage with the same sidebar?
Author
Owner

@ssddanbrown commented on GitHub (Apr 21, 2018):

Thanks @Abijeet for having a go at this and sorry for my late reply.

I think merging it in with the entity selector will be more trouble so an extra setting, as your first screenshot, is the best option for now.

I've been thinking about cleaning up the setting UI design recently so when I do that I may alter the implementation to be clearer but as the screenshot is perfectly fine for now.

I would say a new custom template may work better, With the same sidebar content as the existing custom homepage layout but with the 'all books' page main content.

@ssddanbrown commented on GitHub (Apr 21, 2018): Thanks @Abijeet for having a go at this and sorry for my late reply. I think merging it in with the entity selector will be more trouble so an extra setting, as your first screenshot, is the best option for now. I've been thinking about cleaning up the setting UI design recently so when I do that I may alter the implementation to be clearer but as the screenshot is perfectly fine for now. I would say a new custom template may work better, With the same sidebar content as the existing custom homepage layout but with the 'all books' page main content.
Author
Owner

@technowhizz commented on GitHub (Sep 14, 2021):

@Abijeet You are a legend. I was about to use the nginx hack then saw the PR. Thank you!

@technowhizz commented on GitHub (Sep 14, 2021): @Abijeet You are a legend. I was about to use the nginx hack then saw the PR. Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#522