Skip to content

fix: Update BridgeForm link to open Terms of Use in a new tab#577

Merged
chibie merged 2 commits into
mainfrom
fix/terms-open-new-page
Jul 7, 2026
Merged

fix: Update BridgeForm link to open Terms of Use in a new tab#577
chibie merged 2 commits into
mainfrom
fix/terms-open-new-page

Conversation

@Dprof-in-tech

@Dprof-in-tech Dprof-in-tech commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Description

  • Modified the Terms of Use link in BridgeForm to include target="_blank" and referrerPolicy="no-referrer" for improved user experience and security.

References

Testing

  • This change adds test coverage for new/changed/fixed functionality

Checklist

  • I have added documentation and tests for new/changed functionality in this PR
  • All active GitHub checks for tests, formatting, and security are passing
  • The correct base branch is being used, if not main

By submitting a PR, I agree to Paycrest's Contributor Code of Conduct and Contribution Guide.

Summary by CodeRabbit

  • Bug Fixes
    • Updated the “Terms of Use” link so it opens in a new browser tab.
    • Improved link safety by adding a noopener noreferrer behavior to help prevent referrer sharing.

- Modified the Terms of Use link in BridgeForm to include target="_blank" and referrerPolicy="no-referrer" for improved user experience and security.
@cursor

cursor Bot commented Jul 7, 2026

Copy link
Copy Markdown

Bugbot is not enabled for this team, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@coderabbitai

coderabbitai Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 60585267-954e-47f0-b1e8-92d39973bbeb

📥 Commits

Reviewing files that changed from the base of the PR and between 6a01687 and 1ae5a62.

📒 Files selected for processing (1)
  • app/components/bridge/BridgeForm.tsx
✅ Files skipped from review due to trivial changes (1)
  • app/components/bridge/BridgeForm.tsx

📝 Walkthrough

Walkthrough

The Terms of Use link in BridgeForm.tsx now opens in a new tab and includes rel="noopener noreferrer".

Changes

Terms of Use Link Update

Layer / File(s) Summary
Add target and rel to Terms of Use link
app/components/bridge/BridgeForm.tsx
The Terms of Use link under the Confirm button now uses target="_blank" and rel="noopener noreferrer".

Estimated code review effort: 1 (Trivial) | ~2 minutes

Poem

A tiny hop, a tab swings wide,
The Terms of Use now pops outside.
With rabbit-safe links, swift and neat,
The confirm screen feels complete.
🐇

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the main change: opening the BridgeForm Terms of Use link in a new tab.
Description check ✅ Passed The description covers purpose and implementation, but it lacks concrete testing steps and environment details, and the empty References section should be removed or filled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@app/components/bridge/BridgeForm.tsx`:
- Line 475: The Link in BridgeForm still opens a new tab without the same opener
protection used elsewhere in the file, leaving a reverse-tabnabbing gap. Update
the Terms of Use Link in BridgeForm to follow the same target="_blank" pattern
as the other external links in this component by adding the appropriate rel
attribute alongside the existing referrerPolicy, keeping the JSX consistent and
safe.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 65479ca4-7446-4e0d-96a2-eb4403338067

📥 Commits

Reviewing files that changed from the base of the PR and between 0720c9b and 6a01687.

📒 Files selected for processing (1)
  • app/components/bridge/BridgeForm.tsx

Comment thread app/components/bridge/BridgeForm.tsx Outdated
- Changed the Terms of Use link in BridgeForm to use rel="noopener noreferrer" for enhanced security when opening in a new tab.
@cursor

cursor Bot commented Jul 7, 2026

Copy link
Copy Markdown

Bugbot is not enabled for this team, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@chibie
chibie merged commit e2bbae5 into main Jul 7, 2026
2 checks passed
@chibie
chibie deleted the fix/terms-open-new-page branch July 7, 2026 23:07
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.

2 participants