Skip to content

Commit ba311c9

Browse files
committed
Fix a bug causing resources with relative paths to load the wrong URL
1 parent bc62458 commit ba311c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

static/canjs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ function navigate(href) {
195195
return;
196196
}
197197

198+
window.history.pushState(null, null, href);
199+
198200
// clear existing scroll interval if it's still alive
199201
clearInterval(scrollPositionInterval);
200202

@@ -270,8 +272,6 @@ function navigate(href) {
270272
if(searchControl.searchResultsCache){
271273
searchControl.renderSearchResults(searchControl.searchResultsCache);
272274
}
273-
274-
window.history.pushState(null, null, href);
275275
},
276276
error: function() {
277277
window.history.pushState(null, null, href);

0 commit comments

Comments
 (0)