BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

Redirect from /books to /shelves

Open eblet opened this issue 10 months ago • 2 comments

Attempted Debugging

  • [X] I have read the debugging page

Searched GitHub Issues

  • [X] I have searched GitHub for the issue.

Describe the Scenario

Hello! For convenience, we have disabled the display of the Books menu (*.com/books) on the main page, how can you set up eternal redirection from the *.com/books page to *.com/shelves

Exact BookStack Version

v24.02.3

Log Content

No response

Hosting Environment

Ubuntu 22.04

eblet avatar Apr 21 '24 10:04 eblet

We use for hide /books on menu <style> header a[href$="/books"] { display: none; } </style>

eblet avatar Apr 21 '24 10:04 eblet

Hi @eblet, There's nothing in BookStack itself to allow creation of such a redirect (outside of custom code via our hacking methods). Depending on how you've installed, and what webserver you're using, you could set up a web-server level redirect from one path to the other.

ssddanbrown avatar Apr 22 '24 10:04 ssddanbrown