Password reset pages render without Mailman/Postorius styling
Hello,
I have recently deployed a completely new Mailman installation and noticed what appears to be a UI/template issue. Before opening a bug report, I would like to understand whether this is expected behaviour or a known issue.
Environment:
Mailman Core 3.3.10 mailman-web (maxking/mailman-web container) Python 3.12 django-allauth 65.0.2
This is a fresh installation on a new server. No upgrade has been performed from a previous Mailman installation, and the issue is present before any production data has been migrated.
The site itself uses the normal Postorius and HyperKitty layout and branding. Pages such as:
/postorius/ /postorius/lists/
render correctly and use the expected Mailman/Postorius styling.
Login also works correctly.
The issue is limited to the following pages:
/accounts/password/reset/done/ /accounts/password/reset/key/done/
The functionality works as expected, but the pages are rendered with a very minimal layout that appears to come directly from django-allauth. For example, the page only displays content similar to:
================== Menu:
Log in Sign up
Password Reset
We have sent you an email. If you have not received it please check your spam folder...
The pages do not appear to use the same theme or styling as the rest of the Mailman/Postorius interface.
Investigation:
The application is configured with:
LOGIN_REDIRECT_URL = "list_index"
and:
reverse("list_index") -> "/postorius/lists/"
Django resolves the password reset template to:
/usr/lib/python3.12/site-packages/allauth/templates/account/password_reset_done.html
This template extends:
account/base_entrance.html
which in turn extends:
allauth/layouts/entrance.html
The template origins reported by Django are:
get_template("account/password_reset_done.html").origin → /usr/lib/python3.12/site-packages/allauth/templates/account/password_reset_done.html
get_template("allauth/layouts/entrance.html").origin → /usr/lib/python3.12/site-packages/allauth/templates/allauth/layouts/entrance.html
Question:
Is it expected that these password reset completion pages are rendered using the default django-allauth templates instead of the Mailman/Postorius theme?
Or is there a missing template override in the current mailman-web container image?
If this is expected behaviour, is there a recommended way to make these pages use the same layout as the rest of the Mailman/Postorius user interface?
Best regards, Henrik
participants (1)
-
Henrik Rasmussen