initial route is not in history -- ember.js location: "history" -


i'm using ember.js location: "history". first route of site loaded (i.e. 1 type url) renders fine. can click linkto anchor second route, when click button return first route (the loaded one), not routed.

is there can push initial route history? should need this?

my route mapping looks this:

app.router.reopen({   location: "history" });  app.router.map(function() {   this.resource("foods", function(){     this.route("index", {path: "/"});   });   this.route("fourohfour", { path: "*:"}); }); 

note: doesn't seem matter whether begin @ http://mysite.example/ or http://mysite.example/foods. in either case, attempting onto loaded route has no effect.

i believe perhaps should pushing history don't know how it, nor why should need to. "fourohfour" handler undefined routes, btw. don't think it's related issue.

any advice welcome.

good catch on one. ran same issue , started digging around ember.historylocation. found commit on github fork of ember.js fixed problem me:

https://github.com/teddyzeenny/ember.js/commit/c2c483dc592bb926c210e2c4c174dba7314d18dd

... merged diff commit local copy of ember.js, , running history routing fine dev, enough keep me going until wedged main project.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -