[MM-20742] Null checking on URL pathname when deep linking (#1243)
* [MM-20742] Null checking on URL pathname when deep linking * Switched to using '/' instead of blank string
This commit is contained in:
@@ -70,8 +70,8 @@ export default class MainPage extends React.Component {
|
|||||||
teamURL,
|
teamURL,
|
||||||
teamIndex: index,
|
teamIndex: index,
|
||||||
originalURL: deeplinkURL,
|
originalURL: deeplinkURL,
|
||||||
url: `${teamURL.protocol}//${teamURL.host}${deeplinkURL.pathname}`,
|
url: `${teamURL.protocol}//${teamURL.host}${deeplinkURL.pathname || '/'}`,
|
||||||
path: deeplinkURL.pathname,
|
path: deeplinkURL.pathname || '/',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user