mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-13 22:30:41 +08:00
If URL is just a scheme:// component without a path, default to root "/" URL (#3224)
This commit is contained in:
@@ -85,6 +85,8 @@ export default function createNavigationContainer<S: NavigationState, O: {}>(
|
||||
let path = url.split(delimiter)[1];
|
||||
if (typeof path === 'undefined') {
|
||||
path = url;
|
||||
} else if (path === '') {
|
||||
path = '/';
|
||||
}
|
||||
return {
|
||||
path,
|
||||
|
||||
Reference in New Issue
Block a user