Skip to content

Commit

Permalink
Update src/components/HTMLEngineProvider/HTMLRenderers/AnchorRenderer.js
Browse files Browse the repository at this point in the history
Co-authored-by: Aimane Chnaif <96077027+aimane-chnaif@users.noreply.github.com>
  • Loading branch information
allroundexperts and aimane-chnaif authored Apr 11, 2023
1 parent 242a583 commit 875193c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 875193c

Please sign in to comment.