mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 18:11:40 -05:00
use replaceState instead of Router.go to avoid messing with history
This commit is contained in:
parent
a0668156d5
commit
d3058cf908
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue