@@ -19,7 +19,7 @@ function isEmptyObject(object) {
19
19
return true
20
20
}
21
21
22
- function createLocation ( { to, query, hash, state } ) {
22
+ function createLocationDescriptor ( { to, query, hash, state } ) {
23
23
if ( typeof to !== 'object' ) {
24
24
return { pathname : to , query, hash, state }
25
25
} else {
@@ -96,7 +96,7 @@ const Link = React.createClass({
96
96
if ( allowTransition ) {
97
97
let { state, to, query, hash } = this . props
98
98
99
- const location = createLocation ( { to, query, hash, state } )
99
+ const location = createLocationDescriptor ( { to, query, hash, state } )
100
100
101
101
this . context . history . push ( location )
102
102
}
@@ -113,9 +113,9 @@ const Link = React.createClass({
113
113
const { history } = this . context
114
114
115
115
if ( history ) {
116
- const location = createLocation ( { to, query, hash, state } )
116
+ const location = createLocationDescriptor ( { to, query, hash, state } )
117
117
118
- props . href = history . createHref ( location , location . query )
118
+ props . href = history . createHref ( location )
119
119
120
120
if ( activeClassName || ( activeStyle != null && ! isEmptyObject ( activeStyle ) ) ) {
121
121
if ( history . isActive ( to , query , onlyActiveOnIndex ) ) {
0 commit comments