# Plugin route-map loaded even when it’s disabled

**URL:** https://meta.discourse.org/t/plugin-route-map-loaded-even-when-it-s-disabled/114725
**Category:** Development
**Created:** [4월 11, 2019, 6:40오전 UTC](https://meta.discourse.org/t/plugin-route-map-loaded-even-when-it-s-disabled/114725 "2019-04-11T06:40:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kleinfreund](https://avatars.discourse-cdn.com/v4/letter/k/a6a055/32.png) [@kleinfreund](https://meta.discourse.org/u/kleinfreund)
#### Post date: [4월 11, 2019, 6:40오전 UTC](https://meta.discourse.org/t/plugin-route-map-loaded-even-when-it-s-disabled/114725/1 "2019-04-11T06:40:51Z")

</div>

I noticed that a plugin’s client-side routes are loaded even if the plugin is disabled. Is this to be expected?

One still has access to the site settings via `this.site.siteSettings` and can load routes dynamically like this:

```js
export default function () {
  if (this.site.siteSettings['my_plugin_enabled']) {
    this.route('test');
  }
}

```

I wonder if plugin routes _should_ be loaded if a plugin is disabled. Shouldn’t they be unavailable?

---

<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: [4월 11, 2019, 7:30오전 UTC](https://meta.discourse.org/t/plugin-route-map-loaded-even-when-it-s-disabled/114725/2 "2019-04-11T07:30:13Z")

</div>

We will get there… once we merge this PR by @vinothkannans

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

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [6월 13, 2019, 10:03오후 UTC](https://meta.discourse.org/t/plugin-route-map-loaded-even-when-it-s-disabled/114725/4 "2019-06-13T22:03:54Z")

</div>


