Skip to content

Commit

Permalink
fix: double slash in paths (base path parsing)
Browse files Browse the repository at this point in the history
Issue #9
  • Loading branch information
troch committed Jul 23, 2015
1 parent 9c5bf42 commit 7820a3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/Router5.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default class Router5 {
hashPrefix: ''
}
Object.keys(opts).forEach(opt => this.options[opt] = opts[opt])
this.base = window.location.pathname.replace(/^\/$/, '')
this.base = window.location.pathname.replace(/\/$/, '')

return this
}
Expand Down

0 comments on commit 7820a3b

Please sign in to comment.