Note that there are some explanatory texts on larger screens.

plurals
  1. POEmber manual url change does not update the page
    primarykey
    data
    text
    <p>Im in need of some help. Currently if i come into my Ember app to a url like so</p> <pre><code>/#/clients/some-client/claims/123 </code></pre> <p>the page loads like it should. If I manually change the url to something simple like this</p> <pre><code>/#/clients/some-client/claims/456 </code></pre> <p>It does not change the data. I have to actually make sure the page does a hard refresh to get the current data. </p> <p>I am getting the Event trace in the console since i have the LOG_TRANSITIONS set in my app</p> <pre><code>Transitioned into 'clients.client.claims.claim.index' </code></pre> <p>Any idea on where i could be going wrong? </p> <p>The Router</p> <pre><code>Nucleus.Router.map(function () { this.resource("clients", { path: 'clients' }, function () { this.resource("client", { path: ':client_id' }, function () { this.resource("claims", function () { this.resource('claim', { path: '/:claim_id/:claim_sub' }, function () { this.resource('lines', function () { this.resource('line', { path: ':line_id' }, function () { this.resource('flags', function () { this.resource('flag', { path: ':flag_id' }); }); }); }); }); }); }); }); this.route("errors", { path: '/errors/:error_id' }); }); </code></pre> <p>My routes look like so</p> <pre><code>Nucleus.ClientsRoute = Nucleus.Route.extend({ model: function (params) { return Nucleus.Client.find('clients'); } }); Nucleus.ClientRoute = Nucleus.Route.extend({ model: function (params) { return Nucleus.Client.find('client', params); } }); Nucleus.ClaimsRoute = Nucleus.Route.extend({ model: function (params) { var client = this.modelFor('client'), clientId = client.get('data.id'); params.client_id = clientId; return Nucleus.Claim.find('claims', params); }, goToNextClaim: function (claim) { this.transitionTo('claim', claim); } }); Nucleus.ClaimRoute = Nucleus.Route.extend({ model: function (params) { var client = this.modelFor('client'), clientId = client.get('data.id'); params.client_id = clientId; return Nucleus.Claim.find('claim', params); } }); Nucleus.ApplicationRoute = Ember.Route.extend({ setupController: function () { this.controllerFor('meta_property').set('model', Nucleus.MetaProperty.find('meta_property')); this.controllerFor('header').set('model', Nucleus.User.find("user")); } }); </code></pre> <p>And controllers are like so</p> <pre><code>Nucleus.ApplicationController = Nucleus.Controller.extend({ needs: ['meta_property'], isErrorPage: false, currentPathDidChange: function () { if (this.get('currentPath') === 'errors') { this.set('isErrorPage', true); } else { this.set('isErrorPage', false); } }.observes('currentPath') }); Nucleus.ClaimController = Nucleus.ObjectController.extend({}); Nucleus.ClientController = Nucleus.ObjectController.extend({}); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload