Skip to content

Commit

Permalink
Fixed #2867
Browse files Browse the repository at this point in the history
  • Loading branch information
evianzhow committed Feb 8, 2018
1 parent 5102a66 commit 685d015
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Router.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ class App extends React.Component {

// Clean the url with the given prefix.
const cleanUrl = this.props.uriPrefix ? url.split(this.props.uriPrefix)[1] : url;
// Skip for uriPrefix which not registered
if (!cleanUrl) { return; }
// Build an array of paths for every scene.
const allPaths = Object.values(navigationStore.states).map(obj => obj.path).filter(path => path);
// Try to match the url against the set of paths and parse the url parameters.
Expand Down

0 comments on commit 685d015

Please sign in to comment.