Using Deeplinks with SAML Authentication #3348

Closed
opened 2026-02-05 06:26:00 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @RobinFlikkema on GitHub (Nov 15, 2022).

Describe the Bug

Currently using a direct link / deeplink to a page, while not logged in results in begin redirected to the login page.
This is as expected.

However, after logging in using SAML you will be redirected to the homepage of your bookstack installation.

This is an issue as you will have to reopen the link again, or find the correct page yourself.

Steps to Reproduce

  1. Have a bookstack installation with SAML enabled
  2. Save a link to a specific page of your bookstack installation
  3. Logout of bookstack and try to open the link
  4. You're now asked to login, and after login you're redirected to the homepage. Not to the page you tried to open.

Expected Behaviour

I expect that after logging in, bookstack remembered the URL I tried to open, and redirects me to the page I tried to open.

Screenshots or Additional Context

This might be related to SAML login. But i do not know for certain.
Public Access is disabled.

Browser Details

Chrome (latest) on Win10

Exact BookStack Version

v22.10.2

PHP Version

No response

Hosting Environment

Official script on Ubuntu

Originally created by @RobinFlikkema on GitHub (Nov 15, 2022). ### Describe the Bug Currently using a direct link / deeplink to a page, while not logged in results in begin redirected to the login page. This is as expected. However, after logging in using SAML you will be redirected to the homepage of your bookstack installation. This is an issue as you will have to reopen the link again, or find the correct page yourself. ### Steps to Reproduce 1. Have a bookstack installation with SAML enabled 2. Save a link to a specific page of your bookstack installation 3. Logout of bookstack and try to open the link 4. You're now asked to login, and after login you're redirected to the homepage. Not to the page you tried to open. ### Expected Behaviour I expect that after logging in, bookstack remembered the URL I tried to open, and redirects me to the page I tried to open. ### Screenshots or Additional Context This might be related to SAML login. But i do not know for certain. Public Access is disabled. ### Browser Details Chrome (latest) on Win10 ### Exact BookStack Version v22.10.2 ### PHP Version _No response_ ### Hosting Environment Official script on Ubuntu
OVERLORD added the 🐛 Bug label 2026-02-05 06:26:00 +03:00
Author
Owner

@RobinFlikkema commented on GitHub (Nov 23, 2022):

This is fixed.

@RobinFlikkema commented on GitHub (Nov 23, 2022): This is fixed.
Author
Owner

@ssddanbrown commented on GitHub (Nov 23, 2022):

Thanks for confirming @RobinFlikkema, I was intending to test this when I had time, since it was something I expected to work. Good to hear its now working for you.

@ssddanbrown commented on GitHub (Nov 23, 2022): Thanks for confirming @RobinFlikkema, I was intending to test this when I had time, since it was something I expected to work. Good to hear its now working for you.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#3348