8000 add rel external to observablehq links by CobusT · Pull Request #3941 · d3/d3 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

add rel external to observablehq links #3941

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

Merged
merged 1 commit into from
Oct 22, 2024
Merged

add rel external to observablehq links #3941

merged 1 commit into from
Oct 22, 2024

Conversation

CobusT
Copy link
Contributor
@CobusT CobusT commented Oct 22, 2024

In order for us to track referrals from d3js.org to observablehq.com, we need to add rel = "external" to the links from Vitepress's buttons and navigation.

@mbostock
Copy link
Member

Can you point me to the docs for this? I’m curious.

@CobusT
Copy link
Contributor Author
CobusT commented Oct 22, 2024

I can't find the official documentation on the VitePress site for this, but they do mention that, for their Markdown extensions, 'Outbound links automatically get target="_blank" rel="noreferrer"'.

Looking at the code for VPButton here and VPLink here it does look like they default external links to have rel="noreferrer".

@mbostock
Copy link
Member

I see, so it’s just that we’re overriding the rel attribute to not have the default noreferrer. 👍

@mbostock mbostock merged commit aa2c2f9 into d3:main Oct 22, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0