# Ноябрь 2023 — рефакторинг маршрутов Discovery: как это повлияет на мою тему/плагин?

**URL:** https://meta.discourse.org/t/november-2023-refactoring-discovery-routes-how-will-it-affect-my-theme-plugin/282816
**Category:** Development
**Tags:** dev-news
**Created:** [19.Октябрь.2023 17:25:57 UTC](https://meta.discourse.org/t/november-2023-refactoring-discovery-routes-how-will-it-affect-my-theme-plugin/282816 "2023-10-19T17:25:57Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [06.Ноябрь.2023 10:47:34 UTC](https://meta.discourse.org/t/november-2023-refactoring-discovery-routes-how-will-it-affect-my-theme-plugin/282816/3 "2023-11-06T10:47:34Z")

</div>

Это изменение теперь активно в `main`/`tests-passed`

> <https://github.com/discourse/discourse/commit/82d6d691eec9e97c88d67182bcbc583461e3e0dc>
>
> The motivation of this PR is to remove our dependence on Ember's 'named outlets'…, which are removed in Ember 4+.
> 
> At a high-level, the changes can be summarized as:
> 
> \- The top-level \`discovery\` route is totally emptied of all logic. The HTML structure of the template is moved into the \`\<Discovery::Layout /\>\` component for use by child routes.
> 
> \- \`AbstractTopicRoute\` and \`AbstractCategoryRoute\` routes now both lean on the \`DiscoverySortableController\` and associated template. This controller is where most of the logic from the old top-level \`discovery\` controller has ended up.
> 
> \- All navigation controllers/templates have been replaced with components. \`navigation/categories\`, \`navigation/category\` and \`navigation/default\` were very similar, and so they've all been combined into \`\<Navigation::Default\>\`. \`navigation/filter\` gets its own component.
> 
> \- The \`discovery/topics\` controller/template have been moved into a new \`\<Discovery::Topics\>\` component.
> 
> Various other parts of the app have been tweaked to support these changes, but I've tried to keep that to a minimum.
> 
> Anything from \`\<TopicList\>\` down is untouched, which should hopefully mean that a large proportion of topic-list-customizing themes are unaffected.
> 
> For more information, see https://meta.discourse.org/t/282816

---

_[View the full topic](https://meta.discourse.org/t/november-2023-refactoring-discovery-routes-how-will-it-affect-my-theme-plugin/282816)._
