Skip to content

Commit

Permalink
Fix finding page by route
Browse files Browse the repository at this point in the history
  • Loading branch information
ipselon committed May 23, 2017
1 parent d6250f4 commit afc0331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-client/api/model/reactRouterApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function getAvailableRoute (existingRoutes, checkPathname) {
} else {
const match = reg.exec(checkPathname);
if (match && match.length > 0) {
candidateRootKey = existingRoutes.find(i => match[1].indexOf(i) >= 0);
candidateRootKey = existingRoutes.find(i => match[1] === i);
}
}
}
Expand Down

0 comments on commit afc0331

Please sign in to comment.