Reproduction:
- User A gives User B moderator
- User B goes to their profile.
- They see a broken button, called en.admin.user.show_admin_profile.
- They click on it and they get brung to an error page.
A bug has been reported where the admin button appears broken for users who are granted moderator status without a page reload. twofoursixeight observed that after being granted moderator privileges, the button labeled “en.admin.user.show_admin_profile” appears broken and leads to an error page when clicked. sam acknowledged the issue and noted it will be addressed in the coming weeks. nat attempted to reproduce the issue but could not, suggesting it might be environment-specific. sam theorized the issue arises because the admin bundle is only loaded for admins, and if a user gains moderator status without reloading the page, the UI doesn’t update correctly. The workaround is to manually refresh the page after gaining privileges. twofoursixeight confirmed this aligns with their experience — the issue occurred when navigating to a pre-loaded profile page after being granted moderator status. The team agrees this is a bug, though low priority, and recommends forcing a full page refresh on route transitions in such cases to prevent the issue.
Thanks for reporting, we will get it sorted in the next few weeks.
I can’t see this happening on my User B (moderator). Is this a local setup? Can you confirm if this is still happening?
Oh I think I know what this could be. The admin bundle only ships to admins.
I suspect the repro is:
The workaround is to reload the page.
I think this is certainly a bug, but quite low priority, we should force a full refresh on route transition in cases like this.
Does this align with your experience @twofoursixeight
This is what I think happened, User B got moderator status and went to a pre-loaded profile page.