Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent opening onboarding's ToS or PN links in a new tab or window #15998

Open
cpeterso opened this issue Feb 14, 2025 · 0 comments
Open

Prevent opening onboarding's ToS or PN links in a new tab or window #15998

cpeterso opened this issue Feb 14, 2025 · 0 comments
Labels
Bug 🐛 Something's not working the way it should

Comments

@cpeterso
Copy link

cpeterso commented Feb 14, 2025

Description

We want to limit reading of the ToS and PN pages to the current web view.

Steps to reproduce

  1. Open the ToS or PN pages in the onboarding web view.
  2. On a link in the page, Ctrl+click (or Cmd+mouseclick), Shift+click, middle-click, or right-click and select "Open Link in a New Tab".

Expected result

We don't want those actions to open the link in a new tab or window. They should either do nothing or open the link in the current web view.

Use preventDefault() JavaScript to catch these contextmenu or onclick events.

Environment

Windows, macOS, and Linux

@cpeterso cpeterso added the Bug 🐛 Something's not working the way it should label Feb 14, 2025
@cpeterso cpeterso changed the title Prevent opening ToS or PN links in a new tab or window Prevent opening onboarding's ToS or PN links in a new tab or window Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐛 Something's not working the way it should
Projects
Status: To do
Development

No branches or pull requests

1 participant