Skip to content

Fix theme localStorage collision with rspamd UI#7121

Open
rezzorix wants to merge 1 commit intomailcow:stagingfrom
rezzorix:fix/theme-localstorage-staging
Open

Fix theme localStorage collision with rspamd UI#7121
rezzorix wants to merge 1 commit intomailcow:stagingfrom
rezzorix:fix/theme-localstorage-staging

Conversation

@rezzorix
Copy link

Contribution Guidelines

What does this PR include?

Fixes #7083

Fix theme preference collision between mailcow admin UI (/admin) and rspamd UI (/rspamd).

Both used the same localStorage key "theme".
Because both run on the same origin, changing the theme in one UI overwrote the other.

This PR introduces a separate key "mailcow_theme" for the mailcow UI and removes localStorage.clear().

Short Description

Fix theme collision between mailcow UI and rspamd UI.

Affected Containers

  • nginx-mailcow

Did you run tests?

What did you tested?

Manual testing only.

What were the final results? (Awaited, got)

Awaited: mailcow ui / rspamd ui keep independent themes.
Got: Themes no longer overwrite each other.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant