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
committed by Brent Vatne
parent 8329e269b6
commit 4373544257

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,