Image lightbox not working in subfolder install

I’m seeing something which may or may not be related.

As mentioned, this is a subfolder install,using SSO (which goes to the main site).

After logging in I see these cookies

  • _t path="/"
  • _forum_session path="/forums"

if I the navigate (logged in as an admin) to “/forums/sidekiq” (returns the text Forbidden and a 403 result)

I get extra cookies :

  • _forum_session path="/"
  • rack.session path="/"

Looking at the code, _forum_session cookie creation does take the relative path into account

https://github.com/discourse/discourse/blob/871d4543cc367c60001c5cceb7ee9ff9bf23930e/config/initializers/100-session_store.rb#L15-L18

So how am I ended up with another session with the root path? Anyway, putting this up here in case it proves useful info for someone. Still trying to figure out why I can’t access the sidekiq web interface (the intention being to see if there was any info on why the lightbox stuff isn’t working).

2 Likes