Back button in theme component 'edit code' loads old themes and components

AI-generated summary

Users reported a bug where navigating back from the ‘Edit Code’ section in theme components redirects to the old UI (admin/customize/themes/28) instead of the new one (admin/config/customize/components). j.jaffeux confirmed the issue, noting the sidebar appears incorrectly after using the back button. JammyDodger reproduced the bug and noted that admin warning links also point to the outdated interface, suggesting all UI links should direct to the new ‘config’ version. Jagster added that even viewing custom CSS/JS triggers the issue, and mentioned the old UI remains useful for bulk copying theme components between forums. sam acknowledged the issue as high priority, promising a fix soon. The bug was ultimately resolved via PR #32875, as confirmed by kris.kotlarek.

When you go to ‘Themes and components’, and then ‘Edit Code’ in the Custom code section, it’ll take you to edit code.

The back actions will take you to the old UI (admin/customize/themes/28), rather than the new one (admin/config/customize/components)

3 Likes

Hi, thanks for the report.

Ok I see what you mean I think the URL is correct, but yes it’s showing the sidebar which it shouldn’t:

What I should see:

What you get after pressing back from edit code:

2 Likes

I can repro the issue in the OP too. :raised_hand:

I don’t think the old style of the theme/theme component page should be accessible through a UI link anywhere? I think they should all point to the new updated ‘config’ version.

I think the links on the admin warnings also send you to the old style as well.

Couple of screenshots for comparison:

New:

Old:

ETA:

Ah, I may have misunderstood what you meant when you said the links were right. I’m not sure. :thinking:

If so, the only useful info in this post may be that this also happens for the admin warnings on the dashboard too.

Cross-linking another post that reports it Introducing a new visual layout for themes and theme components - #19 by Moin

2 Likes

For me there is no need to edit custom css/js. Just opening it is enough, if there is any code.

(I actually used it yesterday. We don’t have any easy way to import/export theme components is bulk to new forum. Old menu is very much easier to copy and then create in the new forum :smirking_face:)

Hi @noahl just letting you know sorting this out is high on our list, expect an update on it either late this week or early next.

4 Likes

Hi @noahl,

thank you for reporting this bug. It was fixed with this PR:

https://github.com/discourse/discourse/pull/32875

3 Likes

This topic was automatically closed after 21 hours. New replies are no longer allowed.