Repository navigation
Drop the Community placeholder; mark outbound links as opening in a new tab - #224
Merged
neuromechanist merged 2 commits intoJul 31, 2026
Merged
Conversation
The nav and footer advertised a Community surface backed by a placeholder page promising a forum that does not exist and was not being built. Nav entry, footer Forum link, and the page are gone; the footer column is now Project, describing what is actually under it. Links that leave nemar.org -- the citation dashboard, the docs site, the data/api hosts, the GitHub orgs, the build attribution -- now open in a new tab behind a 45-degree arrow. Not applied to download anchors, which also carry rel=external but start a download rather than a navigation. Also links the canonical /citations/ so visitors skip a 308 hop. Closes #222
Deploying nemar-website with
|
| Latest commit: |
5bc58e4
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://d525b649.nemar-website.pages.dev |
| Branch Preview URL: | https://feature-nav-external-links-a.nemar-website.pages.dev |
Astro scopes .primary-nav__list a to Nav's own elements, but the anchor renders inside ExternalLink.astro and carries that component's scope id instead -- so the rule missed it and Citation Dashboard and Documentation fell back to the default link colour and a larger size. Same in the footer columns. :global() on the descendant, scope kept on the container, so this stays confined to the nav and the footer nav.
This was referenced Jul 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #222.
Community is gone
The nav entry, the footer's "Forum" link, and
src/pages/community.astroare removed. The page was a placeholder saying a forum "will land in Phase 4" and pointing people atgithub.com/nemarDatasetsin the meantime — a top-level nav slot spent on a surface with nothing behind it.The footer column that held it is renamed Community -> Project, because it still holds About and Support and those are real. Removing the column outright would have taken two working links with it.
/communitynow 404s. It was a stub with no inbound links from elsewhere on the site, so the exposure is bookmarks; flagging it rather than adding a redirect for a page that only ever said "not yet".Two
host.test.tscases used/communityas a sample marketing path. Dropped from both — the remaining paths cover the same classification, and the second list is now entirely real routes.The need this was standing in for is per-dataset discussion, now tracked as #223 (frontend) and
nemar-cli#1043(backend).Outbound links open in a new tab, behind a 45-degree arrow
New
src/components/ExternalLink.astro, used for every nav and footer link that leaves nemar.org: the citation dashboard, the docs site, the Data column's three hosts, both GitHub organizations, and the Astro / Cloudflare Pages attribution.Deliberately not applied to every
rel="external"in the codebase. Download anchors —BidsTree.astro's per-file links, the archive action — carryrel="external"too, and neither the arrow nortarget="_blank"belongs on them: they start a download rather than a navigation, so the arrow would promise a page that never appears.Details worth noting:
rel="noopener"is the one that matters withtarget="_blank"; without it the opened page gets a livewindow.openerhandle back.noreferrerrides along.em, so it tracks whatever type scale the caller uses — nav, footer columns, and the smaller build line all render it correctly with nothing passed in.Also: skip a redirect hop
https://dashboard.nemar.org/citations308-redirects to/citations/. The nav, the footer, andgetRetiredRedirectinsrc/lib/host.tsall linked the non-canonical form, so every visitor paid an extra round trip — and from/citation-dashboardthat was a redirect landing on a redirect. All three now link/citations/.Verified
Rendered against the dev server:
/communityreturns 404; nav shows five entries withtarget="_blank"on exactly the two external ones; footer columns are Explore / Project / Data / GitHub with arrows on every outbound link and none on Discover, About, or Support. Screenshotted in dark and light.test1015/1015,typecheck0 errors,lintclean.Filed alongside, not in this PR
nemar-cli#1043— the backend that has to exist firstnemar-citations#196,docs#2— headers on those two sites, so arriving there still feels like NEMAR