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 3b21c87 commit 8459755Copy full SHA for 8459755
1 file changed
modules/Link.js
@@ -81,8 +81,14 @@ class Link extends Component {
81
82
event.preventDefault()
83
84
- if (allowTransition)
85
- this.context.history.pushState(this.props.state, this.props.to, this.props.query)
+ if (allowTransition) {
+ let { state, to, query, hash } = this.props
86
+
87
+ if (hash)
88
+ to += hash
89
90
+ this.context.history.pushState(state, to, query)
91
+ }
92
}
93
94
render() {
0 commit comments