BookStackApp / BookStack

A platform to create documentation/wiki content built with PHP & Laravel
https://www.bookstackapp.com/
MIT License
15.08k stars 1.89k forks source link

Redirect from /books to /shelves #4963

Open eblet opened 5 months ago

eblet commented 5 months ago

Attempted Debugging

Searched GitHub Issues

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 commented 5 months ago

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

ssddanbrown commented 5 months ago

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.