From 875193c0133eb438d6d32ea24ffcd5d1d8c2cdea Mon Sep 17 00:00:00 2001 From: Sibtain Ali Date: Tue, 11 Apr 2023 21:37:35 +0500 Subject: [PATCH] Update src/components/HTMLEngineProvider/HTMLRenderers/AnchorRenderer.js Co-authored-by: Aimane Chnaif <96077027+aimane-chnaif@users.noreply.github.com> --- .../HTMLEngineProvider/HTMLRenderers/AnchorRenderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/HTMLEngineProvider/HTMLRenderers/AnchorRenderer.js b/src/components/HTMLEngineProvider/HTMLRenderers/AnchorRenderer.js index b127e677eb64..92c327bc6053 100644 --- a/src/components/HTMLEngineProvider/HTMLRenderers/AnchorRenderer.js +++ b/src/components/HTMLEngineProvider/HTMLRenderers/AnchorRenderer.js @@ -29,7 +29,7 @@ const AnchorRenderer = (props) => { const attrPath = lodashGet(Url.getURLObject(attrHref), 'path', '').replace('/', ''); const hasExpensifyOrigin = Url.hasSameExpensifyOrigin(attrHref, CONFIG.EXPENSIFY.EXPENSIFY_URL) || Url.hasSameExpensifyOrigin(attrHref, CONFIG.EXPENSIFY.STAGING_API_ROOT); const internalNewExpensifyPath = (Url.hasSameExpensifyOrigin(attrHref, CONST.NEW_EXPENSIFY_URL) || Url.hasSameExpensifyOrigin(attrHref, CONST.STAGING_NEW_EXPENSIFY_URL)) - && attrPath && !CONST.PATHS_TO_TREAT_AS_EXTERNAL.includes(attrPath); + && !CONST.PATHS_TO_TREAT_AS_EXTERNAL.includes(attrPath) ? attrPath : ''; const internalExpensifyPath = hasExpensifyOrigin && !attrPath.startsWith(CONFIG.EXPENSIFY.CONCIERGE_URL_PATHNAME) && attrPath;