René's URL Explorer Experiment


Title: `Link`: mark the link to the current page (`aria-current`, `data-active`) · Issue #676 · voidzero-dev/void · GitHub

Open Graph Title: `Link`: mark the link to the current page (`aria-current`, `data-active`) · Issue #676 · voidzero-dev/void

X Title: `Link`: mark the link to the current page (`aria-current`, `data-active`) · Issue #676 · voidzero-dev/void

Description: Summary Link renders a plain with no sign that it points to the current page. Every navigation menu (a header, a sidebar, tabs) has to compare useRouter().path with each link's href by hand. Those hand-written checks usually style th...

Open Graph Description: Summary Link renders a plain with no sign that it points to the current page. Every navigation menu (a header, a sidebar, tabs) has to compare useRouter().path with each link's href by hand. Th...

X Description: Summary Link renders a plain <a> with no sign that it points to the current page. Every navigation menu (a header, a sidebar, tabs) has to compare useRouter().path with each link's href b...

Opengraph URL: https://github.com/voidzero-dev/void/issues/676

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`Link`: mark the link to the current page (`aria-current`, `data-active`)","articleBody":"### Summary\n\n`Link` renders a plain `\u003ca>` with no sign that it points to the current page. Every navigation menu (a header, a sidebar, tabs) has to compare `useRouter().path` with each link's `href` by hand. Those hand-written checks usually style the active link but forget `aria-current=\"page\"`, so screen readers aren't told which link is the current page.\n\n### Example\n\nWhat an app writes today:\n\n```tsx\nimport { Link, useRouter } from '@void/react';\n\n// The section's home link only matches itself; the others also match their nested pages.\nfunction isActive(path: string, href: string, home: string) {\n  return path === href || (href !== home && path.startsWith(`${href}/`));\n}\n\nfunction Sidebar({ links, home }: { links: { href: string; label: string }[]; home: string }) {\n  const { path } = useRouter();\n  return links.map((link) => {\n    const active = isActive(path, link.href, home);\n    return (\n      \u003cLink\n        key={link.href}\n        href={link.href}\n        data-active={active || undefined}\n        aria-current={active ? 'page' : undefined}\n      >\n        {link.label}\n      \u003c/Link>\n    );\n  });\n}\n```\n\nWhat it could be:\n\n```tsx\n\u003cLink href=\"/admin\">Overview\u003c/Link>\n\u003cLink href=\"/admin/users\" activeMatch=\"prefix\">Users\u003c/Link>\n```\n\n### Proposal\n\n- **`aria-current=\"page\"`** when the link's path is the current path. It's semantically \"this is the current page\", so exact match only.\n- **`data-active`** on the same link, for styling with `[data-active]` or Tailwind's `data-active:`. Unlike a class, it doesn't collide with the app's own `className`.\n- **An opt-in for nested pages**, for example `activeMatch=\"prefix\"`, so `/admin/users` stays highlighted on `/admin/users/42`. It matches whole path segments, so `/admin/users` doesn't match `/admin/users-archive`.\n- **Ignore the query and hash** when matching, so `/inbox?page=2` still marks `/inbox`.\n\nThe names are only suggestions. The router already holds the current path in every adapter, so this should look the same in React, Vue, Svelte and Solid. #672, which moves the shared `Link` logic into `void/pages-client`, looks like the natural place for the matching.\n\n### Prior art\n\n- **React Router:** `NavLink` sets `aria-current=\"page\"` and an `active` class, and takes `end` to choose between exact and nested matching.\n- **TanStack Router:** `Link` sets `aria-current=\"page\"` and `data-status=\"active\"`, and takes `activeOptions: { exact, includeSearch }` and `activeProps`.\n- **Vue Router:** `RouterLink` adds `router-link-active` for nested matches, and `router-link-exact-active` plus `aria-current=\"page\"` for exact ones.\n- **Nuxt:** `NuxtLink` takes `activeClass` and `exactActiveClass`.\n\n### Environment\n\n- `void` 1.5.0\n- `@void/react` 1.5.0\n","author":{"url":"https://github.com/karthickeyan-dev","@type":"Person","name":"karthickeyan-dev"},"datePublished":"2026-11-02T14:31:35Z","url":"https://github.com/voidzero-dev/void/issues/676"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f154c94d-171e-d794-ce75-5efc52779cd5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB030:25245F:1A99626:242436C:6AFB8E45
html-safe-noncef5e1fbf4da94dd5c3cda04a5959d291837502a589ba2a636c159590993583864
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDMwOjI1MjQ1RjoxQTk5NjI2OjI0MjQzNkM6NkFGQjhFNDUiLCJ2aXNpdG9yX2lkIjoiODQ5NDA0NzI4ODU0MzEyMDk2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac40d532d01645714f97c6a52a69f3db9eda59e5b1d3395c830c50e0cab2f14df6
hovercard-subject-tagissue:6164568644
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/voidzero-dev/void/676/issue_layout
twitter:imagehttps://opengraph.githubassets.com/504b85cb8cb6156a5c920a1ae88b5cfc37be85d8e113f55a6d25996df6019ca3/voidzero-dev/void/issues/676
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/504b85cb8cb6156a5c920a1ae88b5cfc37be85d8e113f55a6d25996df6019ca3/voidzero-dev/void/issues/676
og:image:altSummary Link renders a plain with no sign that it points to the current page. Every navigation menu (a header, a sidebar, tabs) has to compare useRouter().path with each link's href by hand. Th...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekarthickeyan-dev
hostnamegithub.com
expected-hostnamegithub.com
None9694464143465782ecae2a97650b2a2b0708d5c31c74f41ee86da57e315e2735
turbo-cache-controlno-preview
go-importgithub.com/voidzero-dev/void git https://github.com/voidzero-dev/void.git
octolytics-dimension-user_id149750581
octolytics-dimension-user_loginvoidzero-dev
octolytics-dimension-repository_id1164437080
octolytics-dimension-repository_nwovoidzero-dev/void
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1164437080
octolytics-dimension-repository_network_root_nwovoidzero-dev/void
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release05d967182208691fc7f2e6af52e82fa7fabf6bd5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/voidzero-dev/void/issues/676#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvoidzero-dev%2Fvoid%2Fissues%2F676
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvoidzero-dev%2Fvoid%2Fissues%2F676
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=voidzero-dev%2Fvoid
Reloadhttps://github.com/voidzero-dev/void/issues/676
Reloadhttps://github.com/voidzero-dev/void/issues/676
Reloadhttps://github.com/voidzero-dev/void/issues/676
voidzero-devhttps://github.com/voidzero-dev
voidhttps://github.com/voidzero-dev/void
Codehttps://github.com/voidzero-dev/void
Issues31 (31)https://github.com/voidzero-dev/void/issues
Pull requests16 (16)https://github.com/voidzero-dev/void/pulls
Discussionshttps://github.com/voidzero-dev/void/discussions
Actionshttps://github.com/voidzero-dev/void/actions
Security and qualityhttps://github.com/voidzero-dev/void/security
Insightshttps://github.com/voidzero-dev/void/pulse
https://github.com/voidzero-dev/void
New issuehttps://github.com/login?return_to=https://github.com/voidzero-dev/void/issues/676
New issuehttps://github.com/login?return_to=https://github.com/voidzero-dev/void/issues/676
#687https://github.com/voidzero-dev/void/pull/687
Link: mark the link to the current page (aria-current, data-active)https://github.com/voidzero-dev/void/issues/676#top
#687https://github.com/voidzero-dev/void/pull/687
https://github.com/yangshun
https://github.com/karthickeyan-dev
karthickeyan-devhttps://github.com/karthickeyan-dev
on Nov 2, 2026https://github.com/voidzero-dev/void/issues/676#issue-6164568644
#672https://github.com/voidzero-dev/void/pull/672
yangshunhttps://github.com/yangshun
on Nov 3, 2026https://github.com/voidzero-dev/void/issues/676#event-34987966308
https://github.com/yangshun
yangshunhttps://github.com/yangshun
on Nov 3, 2026https://github.com/voidzero-dev/void/issues/676#issuecomment-6596680697
https://github.com/cpojer
cpojerhttps://github.com/cpojer
on Nov 3, 2026https://github.com/voidzero-dev/void/issues/676#issuecomment-6601751446
cpojerhttps://github.com/cpojer
on Nov 4, 2026https://github.com/voidzero-dev/void/issues/676#event-35078748418
feat(pages): mark the Link to the current page (#687)https://github.com/voidzero-dev/void/commit/59001202e5fe63816d39ba3bf21131b6119dd6bb
#687https://github.com/voidzero-dev/void/pull/687
https://docs.github.com/articles/closing-issues-via-commit-messages
5900120https://github.com/voidzero-dev/void/commit/59001202e5fe63816d39ba3bf21131b6119dd6bb
cpojerhttps://github.com/cpojer
completedhttps://github.com/voidzero-dev/void/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#687https://github.com/voidzero-dev/void/pull/687
on Nov 4, 2026https://github.com/voidzero-dev/void/issues/676#event-35078749360
Sign up for freehttps://github.com/signup?return_to=https://github.com/voidzero-dev/void/issues/676
Sign in to commenthttps://github.com/login?return_to=https://github.com/voidzero-dev/void/issues/676
yangshunhttps://github.com/yangshun
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.