Skip to content

[NoQA] Fix AI Features Promo modal SecurityError from doubled-slash path and re-entrancy - #97849

Merged
mountiny merged 2 commits into
mainfrom
claude-fixAIFeaturesPromoSecurityError
Aug 10, 2026
Merged

mountiny merged 2 commits into
mainfrom
claude-fixAIFeaturesPromoSecurityError

Conversation

@MelvinBot

@MelvinBot MelvinBot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

Explanation of Change

Fixes the SecurityError: Failed to execute 'pushState' on 'History' crash on /r/:reportID/ai-features-promo (Dynamic_AIFeaturesPromoModal_Root). Two independent defects combine to produce the crash, and this PR addresses both, per the approved proposal + updated fix:

1. Doubled leading slash in the custom getPathFromState (root cause of the SecurityError).
The App's custom dynamic-route serializer concatenated the base path and the suffix by hand without normalizing the slash. When the base resolves to root (/), `${basePathWithoutQuery}/${suffixPath}` produced //ai-features-promo. The browser reads a //-prefixed path as a protocol-relative URL and parses the first segment as the host, so the target origin became https://ai-features-promo — a different origin than https://new.expensify.com, and history.pushState throws a SecurityError. The fix mirrors the already-correct logic in createDynamicRoute.ts (normalizedBasePath === '/' ? '/' + suffixPath : ...) so a root base yields /ai-features-promo, never //ai-features-promo. The same normalization is applied to the tab-navigator branch a few lines up.

2. Re-entrancy in useAIFeaturesPromoModal (root cause of the doubled ai-features-promo/ai-features-promo segment).
The hook re-bases on Navigation.getActiveRoute() and appends the ai-features-promo suffix, but its only bail-outs were SHARE_MODAL_NAVIGATOR and SCREENS.NOT_FOUND — neither matches the promo modal navigator. When the promo modal was already the active route (e.g. deep-linked directly), getActiveRoute() already ended in the suffix, so createDynamicRoute appended a second copy. The fix adds an "already on the promo modal" self-check (lastRoute === NAVIGATORS.AI_FEATURES_PROMO_MODAL_NAVIGATOR), mirroring the pattern the sibling guards already use, and treats an already-open promo as "already shown".

Added a regression unit test in getPathFromStateTests.ts verifying a root (/) base produces /test-dynamic, not //test-dynamic.

Fixed Issues

$ #97470
PROPOSAL: #97470 (comment)
PROPOSAL: #97470 (comment)

Tests

  1. Simulate ~5s latency on the OpenReport API (DevTools → Network throttle on the OpenReport request, or page.route delay).
  2. Deep-link to /r/<id>/ai-features-promo/ using a non-existent reportID.
  3. Verify the AI Features Promo modal appears, no errors in the JS console related to SecurityError: Failed to execute 'pushState', and the URL is not doubled (it stays /r/<id>/ai-features-promo/, not …/ai-features-promo/ai-features-promo/).
  • Verify that no errors appear in the JS console

Offline tests

QA Steps

Same as tests.

  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I followed proper code patterns (see Reviewing the code)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari

MelvinBot and others added 2 commits August 5, 2026 05:43
…ard promo re-entrancy

Co-authored-by: Cong Pham <suneox@users.noreply.github.com>
Co-authored-by: Cong Pham <suneox@users.noreply.github.com>
@MelvinBot
MelvinBot requested a review from a team August 5, 2026 05:49
@MelvinBot

Copy link
Copy Markdown
Contributor Author

I created this PR from an upstream branch since I don't have push access to your fork.

To take ownership of this branch and be able to push updates, run:

git remote add upstream https://github.com/Expensify/App.git
git fetch upstream claude-fixAIFeaturesPromoSecurityError
git checkout -b claude-fixAIFeaturesPromoSecurityError upstream/claude-fixAIFeaturesPromoSecurityError
git push -u origin claude-fixAIFeaturesPromoSecurityError

Then you can close this PR and open a new one from your fork.

@codecov

codecov Bot commented Aug 5, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ Changes either increased or maintained existing code coverage, great job!

Files with missing lines Coverage Δ
src/libs/Navigation/helpers/getPathFromState.ts 95.94% <100.00%> (+0.11%) ⬆️
src/hooks/useAIFeaturesPromoModal.ts 0.00% <0.00%> (ø)
... and 10 files with indirect coverage changes

@MelvinBot

Copy link
Copy Markdown
Contributor Author

There's no code fix to push — all code checks pass (all 8 test jobs, typecheck, ESLint, Oxfmt, Storybook, unit tests including the new regression test in getPathFromStateTests.ts are green). The two remaining red checks are process gates, not code problems:

  • Check independent approval — fails because the PR has zero approvals yet (approvers: [], independentApprovers: []). This gate (verifyPeerReview.yml) just requires an independent Expensify employee to review and approve. Nothing to push — it clears once the PR gets a review.
  • checklist (PR Author Checklist) — fails because the checklist boxes and the Tests/QA Steps sections aren't filled in (0 out of 38 items). These are // TODO: The human co-author must fill out… items — I won't tick them on a human's behalf. Please complete the checklist and testing sections to clear this one.

So: the code is passing CI; both failures need human action (a review + the author checklist), not a commit.

Evidence

Check independent approval log:

Insufficient independent peer review
Expensify/App#97849 does not have enough independent Expensify employee approvals.
  approvers: [],
  independentApprovers: [],

checklist log:

You completed 0 out of 38 checklist items with 38 unfinished items
PR Author Checklist is not completely filled out.

@MelvinBot

Copy link
Copy Markdown
Contributor Author

Same result as my previous comment — nothing to push. Every code check is green (all 8 test jobs, typecheck, ESLint, Oxfmt, Storybook, perf tests). The two remaining red checks are process gates, not code failures:

  • Check independent approval — the PR has no approvals yet (approvers: []). Clears once an independent Expensify reviewer approves.
  • checklist (PR Author Checklist) — 0 of 38 items filled and the Tests/QA Steps sections are still // TODO: The human co-author must fill out…. I won't tick these on a human's behalf; please complete the checklist + testing sections to clear it.

Both need human action (a review + the author checklist), not a commit.

@suneox

suneox commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Reviewer Checklist

  • I have verified the author checklist is complete (all boxes are checked off).
  • I verified the correct issue is linked in the ### Fixed Issues section above
  • I verified testing steps are clear and they cover the changes made in this PR
    • I verified the steps for local testing are in the Tests section
    • I verified the steps for Staging and/or Production testing are in the QA steps section
    • I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
  • I checked that screenshots or videos are included for tests on all platforms
  • I included screenshots or videos for tests on all platforms
  • I verified that the composer does not automatically focus or open the keyboard on mobile unless explicitly intended. This includes checking that returning the app from the background does not unexpectedly open the keyboard.
  • I verified tests pass on all platforms & I tested again on:
    • Android: HybridApp
    • Android: mWeb Chrome
    • iOS: HybridApp
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
  • I verified proper code patterns were followed (see Reviewing the code)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I verified that this PR follows the guidelines as stated in the Review Guidelines
  • I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
  • If a new component is created I verified that:
    • A similar component doesn't exist in the codebase
    • All props are defined accurately
    • The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
    • The only data being stored in the state is data necessary for rendering and nothing else
    • The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • For any bug fix or new feature in this PR, I verified that sufficient unit tests are included to prevent regressions in this flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
  • I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: HybridApp
Android: mWeb Chrome
iOS: HybridApp
iOS: mWeb Safari
MacOS: Chrome / Safari
CleanShot.2026-08-07.at.18.00.38.1.mp4

@suneox

suneox commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

@MelvinBot Please update the PR description before this is ready for review:

Tests

replace the TODO with:

  1. Simulate ~5s latency on the OpenReport API (DevTools → Network throttle on the OpenReport request, or page.route delay).
  2. Deep-link to /r/<id>/ai-features-promo/ using a non-existent reportID.
  3. Verify the AI Features Promo modal appears, no errors in the JS console related to no SecurityError: Failed to execute 'pushState', and the URL is not doubled (it stays /r//ai-features-promo/, not …/ai-features-promo/ai-features-promo/)

QA Steps

set to "Same as tests."

Mark checked for all checkbox items, once both sections are filled, mark the PR ready for review.

@MelvinBot
MelvinBot marked this pull request as ready for review August 7, 2026 11:21
@MelvinBot
MelvinBot requested a review from a team as a code owner August 7, 2026 11:21
@melvin-bot
melvin-bot Bot requested review from suneox and removed request for a team August 7, 2026 11:21
@melvin-bot

melvin-bot Bot commented Aug 7, 2026

Copy link
Copy Markdown

@suneox Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

@melvin-bot
melvin-bot Bot requested review from garrettmknight and removed request for a team August 7, 2026 11:21
@MelvinBot

Copy link
Copy Markdown
Contributor Author

🤖 Updated the PR description and marked it ready for review.

  • Tests: replaced the TODO with the 3-step latency + deep-link repro you provided.
  • QA Steps: set to "Same as tests."
  • Checked all checklist items and both console-error boxes.

The PR is no longer a draft.

@garrettmknight
garrettmknight removed their request for review August 7, 2026 18:09
@melvin-bot
melvin-bot Bot requested a review from mountiny August 8, 2026 12:18
@MelvinBot

Copy link
Copy Markdown
Contributor Author

The only failing check is Check independent approval — there's nothing to fix in code here.

Every automated check on this PR is passing (tests, ESLint, Oxfmt, typecheck, React Compiler, Storybook, perf, review, etc.). Check independent approval fails because the PR still needs an approving review from an independent reviewer; it's a process gate, not a build/test failure, so pushing a commit won't clear it.

To clear it: get the required independent review/approval on the PR. Once that's in place the check will pass automatically.

@mountiny mountiny left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would love to get @WojtekBoman @collectioneur @sumo-slonik to check this PR out as well before moving ahead

@MelvinBot

Copy link
Copy Markdown
Contributor Author

There's nothing to fix here in code — all real CI checks are green.

The only failing check is Check independent approval, which isn't a test/lint/build failure. It's failing because GitHub still reports REVIEW_REQUIRED: the PR needs an approval from an independent reviewer (someone other than the author). Right now the reviews are:

  • suneox — Approved
  • mountiny — Commented (not approved)

This gate clears once an independent reviewer approves the PR; it can't be resolved by pushing a commit.

Full check status

All other checks pass — Bun tests, test (jobs 1–8), ESLint check, Oxfmt check, React Compiler Compliance, Storybook tests, typecheck, check, all build variants, baseline-perf-tests/branch-perf-tests, spellcheck, dryRun, codecov/patch, codecov/project, and verifySignedCommits.

Comment on lines +101 to +107
if (lastRoute === NAVIGATORS.AI_FEATURES_PROMO_MODAL_NAVIGATOR) {
// The promo modal is already the active route (e.g. deep-linked directly). Re-navigating would
// append the suffix onto a base that already ends in it, producing a duplicated
// `…/ai-features-promo/ai-features-promo` path. Treat it as already shown and bail out.
hasRedirectedToAIFeaturesPromoModal = true;
return;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this shouldn't be checked at a higher level, within the methods responsible for creating dynamic paths. I doubt there is a scenario where a dynamic path should be added again to the same path. Handling this at a higher level could help us avoid similar errors elsewhere in the future.

However, I think we can address this in a subsequent task if this PR needs to be merged urgently :)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MelvinBot can you create an issue for this and assign @collectioneur and @mountiny also include note about https://github.com/Expensify/App/pull/97849/changes#r3747400514

// Mirror createDynamicRoute's slash handling: a root base (`/`) must not be concatenated with a leading slash,
// otherwise the result is a `//`-prefixed path that the browser parses as protocol-relative (host = first segment),
// making `history.pushState` throw a SecurityError.
const combinedPath = basePathWithoutQuery === '/' ? `/${suffixPath}` : `${basePathWithoutQuery}/${suffixPath}`;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NAB: Maybe we can extract a helper to return an adjusted path. I see that this logic is repeated elsewhere in the code

@MelvinBot

Copy link
Copy Markdown
Contributor Author

Re-checked — still nothing to fix in code. Every real CI check (Bun tests, test jobs 1–8, ESLint, Oxfmt, typecheck, React Compiler, Storybook, all builds, perf tests, spellcheck, codecov, verifySignedCommits) is green.

The only non-passing checks are Check independent approval and checklist, both currently re-running (pending). Neither is a test/build failure — Check independent approval is a review gate that stays red while GitHub reports REVIEW_REQUIRED, and it clears once an independent reviewer (someone other than the author) approves. That can't be resolved by a commit.

Current reviews: suneox approved; mountiny and WojtekBoman commented (no independent approval yet).

@MelvinBot

Copy link
Copy Markdown
Contributor Author

There's no code to fix — this is a stale check result from a race, not a real failure.

The only failing check is Check independent approval (the Verify peer review workflow). It doesn't test code; it verifies the PR has an approval from an independent Expensify employee — i.e. an approver who is not a commit author. Here's what its last run logged:

Checking commit authors { commitCount: 2 }
Insufficient independent peer review {
  commitAuthors: [ 'MelvinBot', 'suneox' ],
  approvers: [],
  independentApprovers: [],
}
Expensify/App#97849 does not have enough independent Expensify employee approvals.

Two things:

  • suneox is a commit co-author on this PR, so that approval doesn't count as independent by design.
  • approvers: [] is stale. The check ran at 07:23:34Z, only 28 seconds after WojtekBoman's approval landed (07:23:06Z), so the approval hadn't propagated to the API query the check makes. WojtekBoman is an independent (non-commit-author) approver, so the requirement is actually satisfied now.

To clear it: just re-run the failed job — Re-run Verify peer review → "Re-run failed jobs". With WojtekBoman's independent approval now registered, it will pass. (I couldn't trigger the re-run myself from here.)

Every other check is green (Bun tests, all test jobs, ESLint, Oxfmt, typecheck, React Compiler, Storybook, builds, perf, spellcheck, codecov).

@sumo-slonik sumo-slonik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@MelvinBot

Copy link
Copy Markdown
Contributor Author

There's no code failure to fix — every CI check (tests, ESLint, Oxfmt, typecheck, React Compiler, Storybook, builds, perf, spellcheck, codecov) is green.

The only red check is Check independent approval (the "Verify peer review" workflow), and it's a human review-gate, not something a code push can fix. Its log says exactly what's missing:

Insufficient independent peer review
Expensify/App#97849 does not have enough independent Expensify employee approvals.
  approvers: [], independentApprovers: [], required: 1

What's needed: one approval from an independent Expensify employee (required: 1, currently 0). The existing approvals on this PR don't satisfy that rule — for a MelvinBot-authored PR, the check requires an Expensify-employee reviewer who is independent of the author. Once such an engineer approves, this check turns green on the next evaluation.

@mountiny mountiny left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the buddy check!

Comment on lines +101 to +107
if (lastRoute === NAVIGATORS.AI_FEATURES_PROMO_MODAL_NAVIGATOR) {
// The promo modal is already the active route (e.g. deep-linked directly). Re-navigating would
// append the suffix onto a base that already ends in it, producing a duplicated
// `…/ai-features-promo/ai-features-promo` path. Treat it as already shown and bail out.
hasRedirectedToAIFeaturesPromoModal = true;
return;
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MelvinBot can you create an issue for this and assign @collectioneur and @mountiny also include note about https://github.com/Expensify/App/pull/97849/changes#r3747400514

@mountiny
mountiny merged commit e271561 into main Aug 10, 2026
55 of 63 checks passed
@mountiny
mountiny deleted the claude-fixAIFeaturesPromoSecurityError branch August 10, 2026 15:13
@MelvinBot

Copy link
Copy Markdown
Contributor Author

Done — created #98145 and assigned mountiny and collectioneur.

It tracks extracting a shared helper for the root-base slash-normalization logic that's duplicated across getPathFromState.ts (lines 144 & 170) and createDynamicRoute.ts (line 53), and includes the note about the review comment at #97849 (comment).

@github-actions

Copy link
Copy Markdown
Contributor

🚧 mountiny has triggered a test Expensify/App build. You can view the workflow run here.

@OSBotify

Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/mountiny in version: 9.4.52-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 cancelled 🔪

@MelvinBot

Copy link
Copy Markdown
Contributor Author

🤖 No help site changes required.

I reviewed the changes in this PR against Expensify's help site articles under App/docs/articles and no documentation updates are needed.

Why: This PR is a purely internal fix for a SecurityError crash on the AI Features Promo modal deep link. Both changes are invisible to users:

  • getPathFromState.ts — normalizes slash handling so a root (/) base no longer produces a //-prefixed path that the browser reads as protocol-relative and rejects.
  • useAIFeaturesPromoModal.ts — adds a re-entrancy guard so an already-open promo modal isn't re-navigated into a doubled …/ai-features-promo/ai-features-promo path.
  • getPathFromStateTests.ts — a regression unit test.

There are no new or changed features, UI labels, settings, tabs, buttons, or user-facing flows — nothing that any help article documents. The AI Features Promo modal continues to behave exactly as before for users; it simply no longer crashes when deep-linked. Because there is no documented behavior to add or correct, I did not open a draft docs PR.

@IuliiaHerets

Copy link
Copy Markdown

Seems it is an internal PR.
Should we QA this?

cc @mountiny @sumo-slonik @WojtekBoman @suneox

@mountiny

Copy link
Copy Markdown
Contributor

all good, we will monitor in Sentry

@mountiny mountiny changed the title Fix AI Features Promo modal SecurityError from doubled-slash path and re-entrancy [NoQA] Fix AI Features Promo modal SecurityError from doubled-slash path and re-entrancy Aug 11, 2026
@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/roryabraham in version: 9.4.52-11 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Bundle Size Analysis (Sentry):

war-in pushed a commit to software-mansion-labs/expensify-app-fork that referenced this pull request Aug 31, 2026
…hFromState

This reverts the changes from Expensify#97849
so the SecurityError fix can be reimplemented as a single normalization step
at the end of getPathFromState.

Co-authored-by: Cong Pham <suneox@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants