diff --git a/modules/Link.js b/modules/Link.js index a84c15fa9f..df8b43cbbc 100644 --- a/modules/Link.js +++ b/modules/Link.js @@ -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() {