javascript-tutorial / javascript-tutorial/en.javascript.info
Open External Links in a New Tab
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 25.5k
- Forks
- 4k
- PR merge metrics
- No merged PRs in 30d
Description
Currently, when users click on external links within the application, they open in the same browser tab. This causes users to navigate away from the application entirely, which is interrupting workflow and negatively impact user experience.
Expected Behavior
External links should open in a new browser tab (e.g., using target="_blank" with appropriate security attributes like rel="noopener noreferrer"). This allows users to:
- Keep the application open in the original tab.
- Easily return to their previous context.
- Avoid losing unsaved progress or navigation state.
Current Behavior
All links (including external links) open in the same tab, replacing the current application view.
Proposed Solution
Update external anchor elements to open in a new tab by default.
Additional Context
Opening external links in a new tab is a common UX pattern in web applications, especially when linking to documentation or external references.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the external anchor elements in the application and compare them with links that stay within the site. Verify in a browser that external links open in a separate tab while internal links retain their existing behavior, and confirm that the new-tab links include the requested security attributes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100