Skip to content

Commit

Permalink
[fixed] Include the hash prop on Links
Browse files Browse the repository at this point in the history
  • Loading branch information
timdorr committed Oct 9, 2015
1 parent 3b21c87 commit 8459755
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions modules/Link.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,14 @@ class Link extends Component {

event.preventDefault()

if (allowTransition)
this.context.history.pushState(this.props.state, this.props.to, this.props.query)
if (allowTransition) {
let { state, to, query, hash } = this.props

if (hash)
to += hash

this.context.history.pushState(state, to, query)
}
}

render() {
Expand Down

0 comments on commit 8459755

Please sign in to comment.