From 84597557dda73d419dd4f647bb49f6c2842ac307 Mon Sep 17 00:00:00 2001 From: Tim Dorr Date: Fri, 9 Oct 2015 14:00:27 -0400 Subject: [PATCH] [fixed] Include the hash prop on Links --- modules/Link.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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() {