···485485 },
486486487487 getStateFromPath(path: string) {
488488+ const [name, params] = router.matchPath(path)
489489+488490 // Any time we receive a url that starts with `intent/` we want to ignore it here. It will be handled in the
489491 // intent handler hook. We should check for the trailing slash, because if there isn't one then it isn't a valid
490492 // intent
491491- if (path.includes('intent/')) return
493493+ // On web, there is no route state that's created by default, so we should initialize it as the home route. On
494494+ // native, since the home tab and the home screen are defined as initial routes, we don't need to return a state
495495+ // since it will be created by react-navigation.
496496+ if (path.includes('intent/')) {
497497+ if (isNative) return
498498+ return buildStateObject('Flat', 'Home', params)
499499+ }
492500493493- const [name, params] = router.matchPath(path)
494501 if (isNative) {
495502 if (name === 'Search') {
496503 return buildStateObject('SearchTab', 'Search', params)