The discussion addresses an issue where certain verification pages in Discourse, such as account activation and admin assignment, temporarily display the default white theme instead of respecting the user’s selected theme. Maisy reported the problem during a site redesign, noting that the theme reverts to white on activation and admin pages before redirecting. codinghorror acknowledged the issue, and techAPJ explained it involves static pages not using the Ember layout. sam suggested adding theme CSS to static pages, and techAPJ confirmed themes already work on such pages. tshenry pointed out a minor logo styling issue on 404 pages, which was later resolved. Maisy confirmed the fixes worked, and tshenry closed the topic, noting all issues had been addressed.
As part of our brand, we are heavily redesigning a development install of Discourse ready for when we migrate over our existing forums.
During development and testing, I have picked up on a few cases where the forum temporarily reverts to the default (white) theme.
Steps to Reproduce
Whilst the Default theme has been disabled and a custom theme has been set…
Sign up
Await confirmation email - click link in email
Navigate to /u/activate-account/
“Click here to activate your acccount”
After clicking to activate your account, the subsequent “you have activated your account” page displays the default white theme until you click through or are re-directed to the forum index.
A similar behavior is also exhibited when I go to assign a new administrator and click on the verification link that is sent via email - on completion, a white page is shown, as below:
The latter isn’t a huge issue, as Administrators will be the only people to see this page, but it probably shouldn’t be happening when regular users go to verify their accounts.
Hopefully I’m just being silly and I’ve missed some small detail, but just in case I’m not being silly, I figured I would raise it here.
Works as expected when logged in with dark theme enabled in my preferences (default for everyone else) and accessing static page (/users/activate-account/xyz).
I see the email verification page is using the dark theme as set, but after clicking activate account we are directed to another light page for a few seconds:
I think everything in this topic has been addressed at this point. I ran through a normal sign-up flow and an approval-based sign-up flow and all of the pages appear to respect the current theme. I just pushed a solution for the inconsistent logo on static pages as well: