Dark mode in public access #3350

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

Originally created by @brandonortiz on GitHub (Nov 17, 2022).

Describe the Bug

Clicking the Dark Mode option from Public Access homepage leads to the page expired screen.

Steps to Reproduce

  1. Enable public access
  2. Log out
  3. Go to base url
  4. Click dark mode

Expected Behaviour

Dark mode enables or is not available as an option

Screenshots or Additional Context

No response

Browser Details

No response

Exact BookStack Version

V22.10.2

PHP Version

No response

Hosting Environment

Ubuntu 20.04

Originally created by @brandonortiz on GitHub (Nov 17, 2022). ### Describe the Bug Clicking the Dark Mode option from Public Access homepage leads to the page expired screen. ### Steps to Reproduce 1. Enable public access 2. Log out 3. Go to base url 4. Click dark mode ### Expected Behaviour Dark mode enables or is not available as an option ### Screenshots or Additional Context _No response_ ### Browser Details _No response_ ### Exact BookStack Version V22.10.2 ### PHP Version _No response_ ### Hosting Environment Ubuntu 20.04
OVERLORD added the 🐛 Bug label 2026-02-05 06:26:24 +03:00
Author
Owner

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

Hi @brandonortiz,
This generally indicates an issue in session management for your instance. This would often be down to one of the following:

  • The server does not have proper write access to the required folders as expected (in this case, the storage/ folder and everything within).
  • Something is affecting cookies on your instance, possibly added webserver security rules or layers?
  • The APP_URL in your .env file does not full align with the URL being used to access your instance in the browser.

If you need further help, confirm you've checked the above points and also confirm exactly how you installed BookStack originally.

@ssddanbrown commented on GitHub (Nov 17, 2022): Hi @brandonortiz, This generally indicates an issue in session management for your instance. This would often be down to one of the following: - The server does not have proper write access to the required folders as expected (in this case, the `storage/` folder and everything within). - Something is affecting cookies on your instance, possibly added webserver security rules or layers? - The `APP_URL` in your `.env` file does not full align with the URL being used to access your instance in the browser. If you need further help, confirm you've checked the above points and also confirm exactly how you installed BookStack originally.
Author
Owner

@brandonortiz commented on GitHub (Nov 17, 2022):

Thanks Dan.

The issue was the browser not being redirected to https at the first page visited. I updated the apache config and it's working now.

@brandonortiz commented on GitHub (Nov 17, 2022): Thanks Dan. The issue was the browser not being redirected to https at the first page visited. I updated the apache config and it's working now.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#3350