Skip to content

fix: replace broken Learn more URL in Added Protection row - #42963

Open
tenderdeve wants to merge 2 commits into
MetaMask:mainfrom
tenderdeve:fix/42908-enforced-simulations-learn-more-url
Open

tenderdeve wants to merge 2 commits into
MetaMask:mainfrom
tenderdeve:fix/42908-enforced-simulations-learn-more-url

Conversation

@tenderdeve

@tenderdeve tenderdeve commented May 27, 2026 •

Copy link
Copy Markdown

Summary

  • The "Learn more" link in the Added Protection section of transaction confirmations (introduced in v13.33.0) pointed to https://support.metamask.io/privacy-and-security/staying-safe-in-web3/what-are-enforced-simulations/ — a URL that was never published, resulting in a 404.
  • Moved the URL to a named constant ENFORCED_SIMULATIONS_LEARN_MORE_LINK in shared/lib/ui-utils.ts, pointing to the existing simulations support article (transactions-and-gas/transactions/simulations/).
  • Removed the stale local constant from enforced-simulations-row.tsx and imported the new one — matching the pattern used by shield-footer-agreement.tsx.

Fixes #42908

Test plan

  • Open a transaction confirmation that shows the Added Protection row
  • Click "Learn more" — should navigate to the valid MetaMask simulations support article (no 404)
  • Existing unit tests pass (yarn test:unit for the affected component)

Note

Low Risk
Single UI href change with no auth, transaction, or data-handling impact.

Overview
Fixes the Added Protection row Learn more link on transaction confirmations, which previously used an unpublished support URL that returned 404.

The row now uses the shared TRANSACTION_SIMULATIONS_LEARN_MORE_LINK from shared/lib/ui-utils (the published simulations article) instead of a local constant, aligning with other simulations help links in the extension.

Reviewed by Cursor Bugbot for commit f47b565. Bugbot is set up for automated code reviews on this repo. Configure here.

The enforced-simulations "Learn more" link pointed to a MetaMask
support article path that was never published, causing a 404.

Move the URL to a named constant in shared/lib/ui-utils.ts (pointing
to the existing simulations article) and import it in
enforced-simulations-row.tsx, matching the pattern used by
shield-footer-agreement.tsx.

Fixes MetaMask#42908
@tenderdeve
tenderdeve requested a review from a team as a code owner May 27, 2026 07:18
@github-actions

Copy link
Copy Markdown
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@cursor cursor Bot 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.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit fc0bdc1. Configure here.

Comment thread shared/lib/ui-utils.ts Resolved

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Learn more link from Added protection section leads to Page not found

3 participants