Skip to content

Commit 66f9506

Browse files
committed
FIX: IE9 regression
1 parent fe3a69c commit 66f9506

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

app/assets/javascripts/discourse/routes/discourse_location.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ Ember.DiscourseLocation = Ember.Object.extend({
152152
pushState: function(path) {
153153
var state = { path: path };
154154

155-
get(this, 'history').pushState(state, null, path);
156-
157155
// store state if browser doesn't support `history.state`
158156
if (!supportsHistoryState) {
159157
this._historyState = state;
158+
} else {
159+
get(this, 'history').pushState(state, null, path);
160160
}
161161

162162
// used for webkit workaround
@@ -174,11 +174,11 @@ Ember.DiscourseLocation = Ember.Object.extend({
174174
replaceState: function(path) {
175175
var state = { path: path };
176176

177-
get(this, 'history').replaceState(state, null, path);
178-
179177
// store state if browser doesn't support `history.state`
180178
if (!supportsHistoryState) {
181179
this._historyState = state;
180+
} else {
181+
get(this, 'history').replaceState(state, null, path);
182182
}
183183

184184
// used for webkit workaround

0 commit comments

Comments
 (0)