Skip to content

Commit 62c8514

Browse files
committed
Fix warning message
1 parent f7d63ac commit 62c8514

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/Router.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export var Router = React.createClass({
9393
onError: func.isRequired,
9494
onUpdate: func,
9595

96-
// For server-side rendering...
96+
// For server-side rendering
9797
location: any,
9898
branch: routes,
9999
params: object,
@@ -133,7 +133,7 @@ export var Router = React.createClass({
133133
if (error || this.nextLocation !== location) {
134134
this._finishTransition(error);
135135
} else if (state == null) {
136-
warning(false, 'Location "%s" did not match any routes', location.path);
136+
warning(false, 'Location "%s" did not match any routes', location.pathname);
137137
this._finishTransition();
138138
} else {
139139
state.location = location;

0 commit comments

Comments
 (0)