If URL is just a scheme:// component without a path, default to root "/" URL (#3224)

This commit is contained in:
Jani Eväkallio
2018-01-04 21:28:41 +00:00
parent 136f562ea4
commit d39254a181

View File

@@ -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,