# Plugin routing problems

**URL:** <https://meta.discourse.org/t/plugin-routing-problems/120221>\
**Category:** Development\
**Created:** [June 13, 2019, 9:10am UTC](https://meta.discourse.org/t/plugin-routing-problems/120221 "2019-06-13T09:10:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [June 13, 2019, 2:59pm UTC](https://meta.discourse.org/t/plugin-routing-problems/120221/2 "2019-06-13T14:59:44Z")

</div>

> [@pacharanero](#):
>
> but if I refresh the page while on my Reflection tab, the Ember app disappears and it seems as though Rails routing takes over, because I just get JSON in the browser.

Can you post the rails code for your controller? It seems like for some reason it is skipping the bootstrap part. Normally if a request comes in that doesn’t include `.json` (or an accept header of JSON like from AJAX) Discourse will bootstrap the ember app by serving HTML. If you are getting JSON without a `.json` that tells me you have somehow disabled this. Maybe by skipping a filter?

> [@pacharanero](#):
>
> I’m also having difficulty getting the Ember router to be run, I don’t know if it’s a file path issue, or if there is some other problem.

I noticed you are trying to append to the user route without using a `resource` parameter. Discourse-assign does it like this:

[https://github.com/discourse/discourse-assign/blob/master/assets/javascripts/discourse-assign/assigns-activity-route-map.js.es6](https://github.com/discourse/discourse-assign/blob/master/assets/javascripts/discourse-assign/assigns-activity-route-map.js.es6)

I would try that approach.

---

_[View the full topic](https://meta.discourse.org/t/plugin-routing-problems/120221)._
