Skip to content

External links open in new tab#49

Merged
pancakereport merged 1 commit into
mainfrom
external-links-new-tab
Mar 21, 2026
Merged

External links open in new tab#49
pancakereport merged 1 commit into
mainfrom
external-links-new-tab

Conversation

@pancakereport
Copy link
Copy Markdown
Collaborator

Add a gem that makes all external links open in a new tab. Now there's no need to manually add target="_blank".

@cycomachead @yanlisa @phrdang Should we add this to the template? I think DATA instructors are split: some want external links to always open in a new tab, others don't care.

@pancakereport pancakereport merged commit 45f711e into main Mar 21, 2026
5 checks passed
@pancakereport pancakereport deleted the external-links-new-tab branch March 21, 2026 00:02
@cycomachead
Copy link
Copy Markdown
Contributor

cycomachead commented Mar 21, 2026 via email

@phrdang
Copy link
Copy Markdown
Member

phrdang commented Mar 21, 2026

Yeah I agree with Michael, ideally this would be nice if it's configurable and not default behavior. I also use cmd+click if I want to open something in a new tab, so this could be confusing if it always opens a new tab. (Also if we are doing internal linking I feel like that should not open a new tab, e.g. going from one page in the docs to the next.)

@phrdang
Copy link
Copy Markdown
Member

phrdang commented Mar 21, 2026

Oh wait I see it's external links only. I think that's fine then!

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.

3 participants