use matchDeepLink result for relative links (#6882)
This commit is contained in:
parent
a9464c365e
commit
b01a5bfab8
2 changed files with 3 additions and 3 deletions
|
|
@ -138,7 +138,7 @@ export const handleGotoLocation = async (serverUrl: string, intl: IntlShape, loc
|
|||
const match = matchDeepLink(location, serverUrl, config?.SiteURL);
|
||||
|
||||
if (match) {
|
||||
handleDeepLink(location, intl, location);
|
||||
handleDeepLink(match, intl, location);
|
||||
} else {
|
||||
const {formatMessage} = intl;
|
||||
const onError = () => Alert.alert(
|
||||
|
|
|
|||
|
|
@ -76,9 +76,9 @@ const MarkdownLink = ({children, experimentalNormalizeMarkdownLinks, href, siteU
|
|||
const match = matchDeepLink(url, serverUrl, siteURL);
|
||||
|
||||
if (match) {
|
||||
const {error} = await handleDeepLink(url, intl);
|
||||
const {error} = await handleDeepLink(match, intl);
|
||||
if (error) {
|
||||
tryOpenURL(url, onError);
|
||||
tryOpenURL(match, onError);
|
||||
}
|
||||
} else {
|
||||
tryOpenURL(url, onError);
|
||||
|
|
|
|||
Loading…
Reference in a new issue