[docs] Add noopener/noreferrer to window.open example

Open Beginner friendly
#1,470 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
90/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Quiet
Tech stack
javascript
Domain
documentation

Research direction

Update docs/base-account/guides/verify-social-accounts.mdx at line 431, where the social verification guide shows the window.open example. Change the example to include noopener,noreferrer in its feature string, then review the rendered documentation to confirm the safer example is shown.

Written by the indexing model from the issue text.

Description

[docs] Add noopener/noreferrer to window.open example

Summary

The social verification guide includes a window.open(..., '_blank') example without noopener or noreferrer.

Affected file

  • docs/base-account/guides/verify-social-accounts.mdx
  • Line 431

Current code

window.open(deepLink, '_blank')

Suggested code

window.open(deepLink, '_blank', 'noopener,noreferrer')

Why this matters

When opening a new browsing context, explicitly using noopener helps prevent the opened page from gaining access to the opener context. This makes the docs example safer for developers to copy into production apps.

Dominant language
JavaScript
Stars
337
Forks
798
Avg merge
7h 24m
Merged PRs (30d)
51

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from base/docs

All issues in base/docs

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.