use replaceState instead of Router.go to avoid messing with history

This commit is contained in:
Sacha Greif 2015-06-19 11:50:59 +09:00
parent a0668156d5
commit d3058cf908

View file

@ -155,7 +155,7 @@ Posts.controllers.page = RouteController.extend({
onAfterAction: function () {
var post = this.post();
if (post && post.slug !== this.params.slug) {
Router.go("post_page", post);
window.history.replaceState({}, "", post.getPageUrl());
}
},