We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a55c8cf commit a5138c5Copy full SHA for a5138c5
src/history/html5.js
@@ -4,7 +4,7 @@ const hashRE = /#.*$/
4
export default class HTML5History {
5
6
constructor ({ root, onChange }) {
7
- if (root) {
+ if (root && root !== '/') {
8
// make sure there's the starting slash
9
if (root.charAt(0) !== '/') {
10
root = '/' + root
0 commit comments