Skip to content

Commit

Permalink
Merge pull request #359 from decademoon/safari-base-bug
Browse files Browse the repository at this point in the history
fix history.replaceState() with base and null url
  • Loading branch information
yyx990803 committed Jan 29, 2016
2 parents a50285c + 9834ad4 commit 43dcd42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/history/html5.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default class HTML5History {
x: window.pageXOffset,
y: window.pageYOffset
}
}, '')
}, '', location.href)
// then push new state
history.pushState({}, '', url)
}
Expand Down

1 comment on commit 43dcd42

@hetz
Copy link

@hetz hetz commented on 43dcd42 Mar 21, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个bug解得漂亮,我困扰好久了。

Please sign in to comment.