Page Redirect Issue After Login #1188

Closed
opened 2026-02-05 00:12:22 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @shayanderson on GitHub (May 17, 2019).

Originally assigned to: @ssddanbrown on GitHub.

If I'm logged into the Bookstack app I copy a URL like:
https://mysite.com/books/my-book/page/my-page

When that URL is used by a user that isn't logged in, they are asked to login. After login they are redirected to the URL:
https://mysite.com/page/my-page

However, that page is a 404 not found error. I assume because it is missing the "book" in the URL. Why are these URLs not redirecting properly? Should a page URL work without the "book" in the URL even if the page is in a book?

Am I missing something? Everything else in the application appears to be operating normally.

Thanks.

Originally created by @shayanderson on GitHub (May 17, 2019). Originally assigned to: @ssddanbrown on GitHub. If I'm logged into the Bookstack app I copy a URL like: `https://mysite.com/books/my-book/page/my-page` When that URL is used by a user that isn't logged in, they are asked to login. After login they are redirected to the URL: `https://mysite.com/page/my-page` However, that page is a 404 not found error. I assume because it is missing the "book" in the URL. Why are these URLs not redirecting properly? Should a page URL work without the "book" in the URL even if the page is in a book? Am I missing something? Everything else in the application appears to be operating normally. Thanks.
OVERLORD added the 🐛 Bug🏭 Back-End🔍 Pending Validation labels 2026-02-05 00:12:22 +03:00
Author
Owner

@ssddanbrown commented on GitHub (May 18, 2019):

Thanks for reporting @shayanderson. I think I've seen this before, Will check the url logic for this redirect some point soon.

Possibly related to #1377.

@ssddanbrown commented on GitHub (May 18, 2019): Thanks for reporting @shayanderson. I think I've seen this before, Will check the url logic for this redirect some point soon. Possibly related to #1377.
Author
Owner

@ssddanbrown commented on GitHub (May 19, 2019):

A fix has been applied to master, ready for the next release. Thanks again for reporting.

@ssddanbrown commented on GitHub (May 19, 2019): A fix has been applied to master, ready for the next release. Thanks again for reporting.
Author
Owner

@shayanderson commented on GitHub (May 21, 2019):

Excellent. Thank you for the quick response and fix.

@shayanderson commented on GitHub (May 21, 2019): Excellent. Thank you for the quick response and fix.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1188