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

**URL:** https://meta.discourse.org/t/back-button-in-theme-component-edit-code-loads-old-themes-and-components/366830
**Category:** Bug
**Created:** [May 20, 2025, 10:10am UTC](https://meta.discourse.org/t/back-button-in-theme-component-edit-code-loads-old-themes-and-components/366830 "2025-05-20T10:10:29Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![noahl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/noahl/32/552343_2.png) [@noahl](https://meta.discourse.org/u/noahl)
#### Post date: [May 20, 2025, 10:10am UTC](https://meta.discourse.org/t/back-button-in-theme-component-edit-code-loads-old-themes-and-components/366830/1 "2025-05-20T10:10:29Z")

</div>

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)_

 ![Screenshot 2025-05-20 at 11.07.02](https://global.discourse-cdn.com/meta/original/4X/d/3/b/d3bae5f49c679757c76823a76c9d86c621285862.png)

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [May 20, 2025, 10:44am UTC](https://meta.discourse.org/t/back-button-in-theme-component-edit-code-loads-old-themes-and-components/366830/2 "2025-05-20T10:44:55Z")

</div>

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:

 ![Screenshot 2025-05-20 at 12.44.12](https://global.discourse-cdn.com/meta/original/4X/e/5/7/e57e1868d893e14fe1da4a843acf486d5564ab2a.png)

What you get after pressing back from edit code:

 ![Screenshot 2025-05-20 at 12.44.17](https://global.discourse-cdn.com/meta/original/4X/e/3/0/e3035904b928d734ac7a29954f9633a50d585b19.png)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [May 20, 2025, 3:00pm UTC](https://meta.discourse.org/t/back-button-in-theme-component-edit-code-loads-old-themes-and-components/366830/4 "2025-05-20T15:00:39Z")

</div>

I can repro the issue in the OP too. ✋

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:

 ![This image shows a settings page for customizing a Discourse site, specifically focusing on components such as "Custom Top Navigation Links" and "DiscoTOC." (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/e/0/f/e0ff40c414d2bd421e351819586da82cdb63216b.jpeg)

Old:

 ![This image shows a page titled "Components," where various options for customizing forum design, including "Hide federation sidebar link," are listed. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/4/5/4/4546b39eab4e0187941f9a39cfe31a90556b299a.jpeg)

**ETA:**

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

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](https://meta.discourse.org/t/introducing-a-new-visual-layout-for-themes-and-theme-components/364921/19)

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [May 20, 2025, 5:51pm UTC](https://meta.discourse.org/t/back-button-in-theme-component-edit-code-loads-old-themes-and-components/366830/6 "2025-05-20T17:51:31Z")

</div>

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 😏)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [May 22, 2025, 1:00am UTC](https://meta.discourse.org/t/back-button-in-theme-component-edit-code-loads-old-themes-and-components/366830/8 "2025-05-22T01:00:43Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![kris.kotlarek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kris.kotlarek/32/176919_2.png) [@kris.kotlarek](https://meta.discourse.org/u/kris.kotlarek)
#### Post date: [May 29, 2025, 12:40am UTC](https://meta.discourse.org/t/back-button-in-theme-component-edit-code-loads-old-themes-and-components/366830/10 "2025-05-29T00:40:19Z")

</div>

Hi @noahl,

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

[https://github.com/discourse/discourse/pull/32875](https://github.com/discourse/discourse/pull/32875)

---

<div class="post-metadata">

### Author: ![kris.kotlarek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kris.kotlarek/32/176919_2.png) [@kris.kotlarek](https://meta.discourse.org/u/kris.kotlarek)
#### Post date: [May 29, 2025, 12:40am UTC](https://meta.discourse.org/t/back-button-in-theme-component-edit-code-loads-old-themes-and-components/366830/11 "2025-05-29T00:40:23Z")

</div>



---

<div class="post-metadata">

### Author: ![kris.kotlarek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kris.kotlarek/32/176919_2.png) [@kris.kotlarek](https://meta.discourse.org/u/kris.kotlarek)
#### Post date: [May 29, 2025, 12:40am UTC](https://meta.discourse.org/t/back-button-in-theme-component-edit-code-loads-old-themes-and-components/366830/12 "2025-05-29T00:40:31Z")

</div>



---

<div class="post-metadata">

### Author: ![kris.kotlarek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kris.kotlarek/32/176919_2.png) [@kris.kotlarek](https://meta.discourse.org/u/kris.kotlarek)
#### Post date: [May 29, 2025, 10:00pm UTC](https://meta.discourse.org/t/back-button-in-theme-component-edit-code-loads-old-themes-and-components/366830/14 "2025-05-29T22:00:26Z")

</div>

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