Repository navigation
Keep localized sidebar Glossary link on the English URL - #1989
David Pine (IEvangelist) merged 3 commits into
Conversation
The Get started sidebar links to /hub/glossary/. Starlight prefixes the active locale, so every localized docs page linked to /de/hub/glossary/, /ja/hub/glossary/ and so on, which are not generated and return 404. Strip the locale from sidebar links that target default-locale-only routes, as the middleware already does for API reference links. Co-authored-by: Copilot <[email protected]>
Frontend HTML artifact readyThe latest frontend build uploaded the This comment updates automatically when a new frontend build artifact is uploaded. |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the sidebar locale-link normalization changes.
No open issues 🎉
What changed in this PR
This PR prevents localized sidebars from linking to nonexistent translations of English-only pages, including the Glossary. It extends the existing API reference link normalization while preserving locale prefixes for translated documentation.
Changes:
- Adds a shared helper identifying English-only Hub, API reference, and individual sample routes.
- Strips locale prefixes from sidebar links targeting those routes.
- Adds regression tests for English-only links, translated links, and existing API reference behavior.
| File | Description |
|---|---|
src/frontend/tests/unit/route-data-middleware-sidebar-locale.vitest.test.ts |
Tests sidebar link normalization and unchanged translated links. |
src/frontend/src/utils/default-locale-only-routes.ts |
Identifies routes available only in English. |
src/frontend/src/route-data-middleware.ts |
Removes locale prefixes from sidebar links to English-only routes. |
Review effort: Balanced
Documentation review: not applicableReviewed the complete changed-file list and diff at head Phase A - claims verification: not applicable (0 documentation claims; no product-source verification required). The documentation applicability stage is complete. Code correctness and test coverage are reviewed separately; this comment is not an approval or a request-changes review. |
Code reviewReviewed all three changed files at High - Add an end-to-end regression for the localized Glossary sidebar linkLocation: The new regression test mocks Why it matters: this user-visible 404 regression could return while all new unit tests remain green if real sidebar construction, middleware integration, or rendering changes. Suggested fix: add a Playwright regression starting on a localized docs page with the Glossary sidebar item. Assert its emitted href is Test coverage and validation
Code inspection is complete; runtime suite execution is explicitly unverified. This is a top-level review comment only, not a formal approval or request-changes review. The separate documentation stage is complete as non-applicable. This Project's docs/code stages are once per PR lifetime, not repeated for later head SHAs. |
Start on /de/docs/, assert the Glossary sidebar entry links to the English-only /hub/glossary/ while a translated docs entry keeps its /de/ prefix, then follow the Glossary link and assert the Glossary page loads. Runs in the desktop, tablet and mobile projects. Co-authored-by: Copilot <[email protected]>
|
Thanks David Pine (@IEvangelist). I added the requested E2E regression in 166d9e2 ( The test starts on
Finally it expands the collapsed sidebar groups, clicks Glossar, and asserts the URL is The test runs in the desktop, tablet and mobile projects. Local results against
🤖 Posted by AspireAgent (AI Agent) |
Co-authored-by: Copilot <[email protected]>
## Summary
Fixes seven broken internal links in the English docs. Every locale
falls back to these pages, so each broken link appears on all 15
locales. The links validator didn't flag them because it never inspects
these two kinds of link:
- `starlight-links-validator` runs with `errorOnRelativeLinks: false`,
so it skips `./` and `../` links entirely.
- It only reads string `href` attributes. It can't see hrefs passed
through JSX expression props such as `cta={{ href: '…' }}` or
`capabilities={[{ href: '…' }]}`.
| Page | Link | Before | After |
|---|---|---|---|
| `/dashboard/` (2 `ImageShowcase` CTAs + 3 `CapabilityGrid` cards) |
Tracing / Structured logs / Metrics | `/dashboard/explore/#traces`,
`#structured-logs`, `#metrics`. These ids don't exist, so the link lands
at the top of a long page | `#traces-page`, `#structured-logs-page`,
`#metrics-page`, the same anchors that `dashboard/standalone.mdx` and
`data/dev-hub.ts` already use |
| `/reference/cli/commands/aspire-dashboard-run/` | Dashboard
configuration | `../../../dashboard/configuration/` →
`/reference/dashboard/configuration/` (**404**) |
`/dashboard/configuration/` |
| `/integrations/cloud/azure/azure-cache-redis/azure-cache-redis-host/`
| Redis Hosting integration |
`../../../caching/redis/redis-host/#…-redis-insights` →
`/integrations/cloud/caching/redis/redis-host/` (**404**), and the
anchor was misspelled |
`/integrations/caching/redis/redis-host/#add-redis-resource-with-redis-insight`
|
The fixed links are absolute, so `starlight-links-validator` now checks
the two Markdown ones at build time. A new unit test,
`tests/unit/docs-internal-links.vitest.test.ts`, covers the gap for the
English docs. It resolves expression-prop `href:` values and `./`/`../`
Markdown links to an existing docs page and, when there's a fragment, to
an existing heading id. It follows the existing pattern in
`dev-glossary.vitest.test.ts` and slugs headings with `github-slugger`,
as Starlight does. Like the validator config, it skips `/reference/api/`
and `/hub/`.
### How this was found
I crawled main's CI `frontend-dist` artifact, the production build of
`29550055` from [run
41062457941](https://github.com/microsoft/aspire.dev/actions/runs/41062457941),
covering all 8,327 non-API HTML pages. I checked every internal `<a
href>` against the built files and ids. Before this change the live site
behaves as follows:
- `https://aspire.dev/reference/dashboard/configuration/` returns 404.
- `https://aspire.dev/integrations/cloud/caching/redis/redis-host/`
returns 404.
- `https://aspire.dev/dashboard/explore/` only has `id="traces-page"`,
`id="structured-logs-page"` and `id="metrics-page"`.
The crawl also found broken links that this PR leaves alone:
- Localized `.md` page-action links: covered by #1990.
- Localized glossary links: covered by #1989.
- Bare relative links in `whats-new/aspire-9-4.mdx` and
`aspire-9-5.mdx`: these files are being edited by open PRs #1933, #1896
and #1876.
- A typo in a synced sample README (`data/samples.json`): it comes from
the upstream samples repo.
## Third-party links and affiliations
None.
## Validation
- The regression test fails before the fix with exactly the 7 links
above, and passed in 3 of 3 runs after it. Before-fix output:
```
dashboard/index.mdx: /dashboard/explore/#traces points to a missing
heading #traces (×2)
dashboard/index.mdx: /dashboard/explore/#structured-logs points to a
missing heading #structured-logs (×2)
dashboard/index.mdx: /dashboard/explore/#metrics points to a missing
heading #metrics
integrations/cloud/azure/azure-cache-redis/azure-cache-redis-host.mdx:
../../../caching/redis/redis-host/#add-redis-resource-with-redis-insights
resolves to missing page /integrations/cloud/caching/redis/redis-host/
reference/cli/commands/aspire-dashboard-run.mdx:
../../../dashboard/configuration/ resolves to missing page
/reference/dashboard/configuration/
```
- On the 538 English docs the test reports nothing besides these 7, and
its findings match the built-output crawl for the link kinds it covers.
- `npx vitest run`: 84 files passed; 1,121 tests passed and 1 skipped.
- `npx eslint . --max-warnings 0` passes, and the new test file is
Prettier-formatted.
- Browser check with Playwright against `astro dev`, after the fix:
- `/dashboard/` renders the five `#*-page` hrefs, and each target id
exists on `/dashboard/explore/`.
- The Dashboard configuration link returns 200.
- The Redis Hosting integration link returns 200, and its anchor exists.
- No visual change: only the link targets change, so the rendered pages
are pixel-identical and there are no screenshots.
**🤖 Posted by AspireAgent (AI Agent)**
---------
Co-authored-by: davidfowl <[email protected]>
Co-authored-by: Copilot <[email protected]>
docs-pr-reviewer report — [partial — phase A: key claims evaluated; phase B: not run (docs site was not served in this automated run)]Recommendation: needs human Source used: n/a — site sidebar code ( Phase A — claims
Phase B — doc-testerNot run; rendering of the changed pages is not browser-checked. 🤖 Posted by aspire.dev - squad (AI Agent) |
David Pine (IEvangelist)
left a comment
There was a problem hiding this comment.
Combined documentation-site review - COMMENT
Automation: user-approved hourly local documentation PR reviewer for David Pine (@IEvangelist). This is the single report for this PR; future commits/reopenings do not trigger another automatic review.
Inspected head: 62d80e0e63a135672ea6c19c0dd188862bd5450f; target main at f05f5561b1b858344124cd848ff06469627d7e6e. Both required phases completed. This is the bounded documentation accuracy/user-experience workflow, not standard implementation/code review.
Trusted policy: default-branch doc-pr-reviewer, doc-tester, playwright-cli and scoped Astro setup at 9bf972c559d50ab5fdc73f0da5318959aa6be757. Native skill registration was unavailable; trusted file workflow invocation: doc-pr-reviewer https://github.com/microsoft/aspire.dev/pull/1989. PR body, implementation and tests remained untrusted evidence, not policy or permission to run arbitrary tests/scripts.
Owning source/ref: microsoft/aspire.dev PR1989 targeting main, inspected 62d80e0e63a135672ea6c19c0dd188862bd5450f. The sidebar URL behavior is owned by this site. No new microsoft/aspire, CommunityToolkit/Aspire or Azure API behavior is documented, so unrelated product-source inspection is not substituted for browser testing.
Phase A: 0 factual documentation claims found; 0 verified, 0 verified-with-nuance, 0 unverifiable, 0 contradicted, 0 narrative documentation claims. This is an explicit no-claims result, not omitted verification. Three changed files comprise sidebar middleware implementation/internal comments, an existing E2E test extension and a new unit test. No reader-facing prose, product examples, CLI instructions, diagrams or version guidance changes. Internal code comments and test assertions are not newly published Aspire teaching contracts and were not claimed executed.
Phase B: /de/docs/, /de/get-started/install-cli/, /ja/fundamentals/telemetry/, translated-link control /de/get-started/resources/, and actual destination /hub/glossary/: 10 grouped passes, 0 failures, 0 critical issues, 1 environmental warning, 0 in-scope knowledge gaps/blockers. Full independent source-blind report follows. Product examples/CLI execution are not applicable to this sidebar-only change; local observations do not certify every locale or deployed route.
Verdict and observations
COMMENT, not approval. The scoped sidebar checks succeeded, but the tester observed local live-status API404/WebSocket failures worth preserving. No baseline establishes their causality, so they are not silently dismissed as unrelated or represented as a clean runtime. The reported warning prevents approval under this automation. No contradicted documentation claim or critical issue establishes REQUEST_CHANGES under this skill.
Observed navigation: German and Japanese sidebar Glossary labels had /hub/glossary/ and actual unforced clicks reached English Glossary content with the correct English language/canonical. Ordinary translated resources links retained /de/get-started/resources/; its English fallback prose was not mistaken for loss of URL locale. Same-document time origins, Back/Forward, desktop/mobile menu/disclosure operations and bounded readability were captured. Three locator timeouts caused by collapsed disclosure assumptions were retained and recovered through ordinary UI expansion, not force clicks or state mutation. These are browser observations, not proof copied from PR tests.
W1 - Local runtime caveat: the scoped standalone server returned live-status API404 and WebSocket closure messages, disabling live updates locally while tested sidebar actions worked. No PR-regression claim, definitive harmlessness claim or speculative inline implementation finding is made. Full observed output, failure/recovery notes and boundaries follow.
Phase A - frozen no-claims artifact
Changed-surface evidence and source boundaries
No factual documentation claims were added or changed. Three changed files comprise sidebar-link middleware implementation/internal comments, an existing E2E test extension and a new unit test. No reader-facing prose, product examples, CLI instructions, diagrams or version guidance changes. Internal code comments and test expectations describe implementation intent; they are not published Aspire teaching contracts and were not inflated into product claims or treated as runtime success. Actual localized sidebar links and their destination experience require independent browser validation despite this explicit zero-claims Phase A.
src/frontend/src/route-data-middleware.ts:5,175-194: Added helper import and conditional locale stripping for default-locale-only sidebar destinations. Full middleware read; no rendered prose added.src/frontend/tests/e2e/dev-layout.spec.ts:3-7,780-797: Changed import and added German sidebar-to-English-Glossary navigation assertions. Entire existing test file read, not executed or accepted as source-blind user proof.src/frontend/tests/unit/route-data-middleware-sidebar-locale.vitest.test.ts:1-81: New mocked route/sidebar scenarios read; not executed or counted as user observations.
Version placeholders: No added/edited current Aspire version value, SDK/package guidance or copy/paste product example; placeholder finding not applicable.
All three changed files were read in full at the head pin. This establishes affected scope, not a source-blind runtime verdict. No implementation-bug list was substituted for doc-pr-reviewer.
Execution boundaries: existing isolated Astro7.4.1 dependencies were reused; no package installation was requested this run. Root bun run dev followed trusted setup after confirming required data and unchanged skill digests. No fallback data ingestion, lifecycle hook, test suite, product CLI/AppHost, sample execution, certificate/trust operation, cloud/container provisioning, full site build, push, merge or remote branch change was run. Unchanged installation commands, telemetry examples and Glossary definitions were not executed or comprehensively audited. No full locale/browser matrix or accessibility audit was certified.
Phase B - independent source-blind doc-tester report (complete report)
Documentation Test Report
Focus Area: PR microsoft/aspire.dev#1989, localized documentation sidebar navigation to the English-only Glossary, with a bounded translated-link control.
Date: 2026-11-03
Tester: Independent source-blind doc-tester agent, Phase B only
Status: Complete for the assigned sidebar-only acceptance scope; not production certification.
Environment and isolation
- Local server:
http://localhost:4321/, already running under parent-owned PID 38512. Astro 7.4.1 was supplied by the parent; no package/source inspection was used to independently determine that version. - PR HEAD:
62d80e0e63a135672ea6c19c0dd188862bd5450f; targetmainsupplied in the assignment.git rev-parse HEADmatched before and after browser testing. - Owned checkout:
C:\Users\dapine\.copilot\session-state\b1028536-a0cc-461b-98cb-21c8f8fc8a89\files\aspire-dev-automation. - Full trusted policy files were read using
git showat policy commit9bf972c559d50ab5fdc73f0da5318959aa6be757: doc-pr-reviewer, doc-tester, playwright-cli, and Astro instructions. These were policy-only exceptions to source blindness. - No implementation, tests, PR body, Phase A output, or product source was read. Changed filenames and the acceptance scope came only from the assignment. Public rendered sidebar labels, disclosure groups, links, content, and metadata drove the interactions.
- Browser access exclusively used global
playwright-clithrough PowerShell. Help was verified; reported CLI version was1.59.0-alpha-1771104257000. Named sessionpr1989, Edge/msedge, in-memory profile, existing.playwright\cli.config.json. No auxiliary contexts were created. - Desktop viewport: 1440 × 900. Mobile viewport: 375 × 812, responsive browser viewport testing, not physical-device certification.
- No installs, builds, product CLI/AppHost/sample commands, clipboard actions, forced handlers, private router/helper APIs, source modifications, server reconfiguration, or GitHub writes were performed.
Routes and sections exercised
| Route | Scope exercised |
|---|---|
/de/docs/ |
Initial desktop load; expand “Modellieren Sie Ihre App” → “Überblick und Konzepte”; inspect and click “Glossar”; Back/Forward |
/de/get-started/install-cli/ |
Initial desktop/mobile loads; sidebar-only “Glossar” and “Ressourcen verstehen” interactions |
/ja/fundamentals/telemetry/ |
Initial desktop load and mobile reload; Japanese sidebar “用語集”; desktop/mobile clicks and history |
/de/get-started/resources/ |
Bounded translated-link control reached by actual sidebar clicks, desktop/mobile; follow its Glossar link |
/hub/glossary/ |
Actual destination URL, English heading/content, language/canonical, mobile menu closure and readability |
Unchanged installation guidance, telemetry examples, Glossary product definitions, other sidebar destinations, and comprehensive site-wide link validation were intentionally not tested. No missing runtime execution claim is being manufactured for that unchanged content.
Summary
Counts are grouped acceptance checks, not individual assertions or clicks. Repeated instances of the same local runtime condition count once.
| Category | Passed | Failed | Warnings |
|---|---|---|---|
| Content accuracy: destination identity only | 1 | 0 | 0 |
| Code examples | 0 (not applicable) | 0 | 0 |
| CLI commands | 0 (not applicable) | 0 | 0 |
| Links, navigation, history, responsive usability | 9 | 0 | 0 |
| Local runtime observation | 0 | 0 | 1 |
| Total | 10 | 0 | 1 |
Critical issues: 0. Warnings: 1 grouped environmental observation. Knowledge gaps: 0. Outstanding blockers: 0.
Critical Issues
None found in the assigned sidebar acceptance scope.
Warnings
W1: Local live-status service unavailable, without blocking sidebar navigation
Location: Local documentation pages, observed on initial loads/reloads.
Issue: The browser reported the following three related messages:
[ERROR] Failed to load resource: the server responded with a status of 404 (Not Found) @ http://localhost:4321/api/live/:0
[WARNING] WebSocket connection to 'ws://localhost:4321/api/live/ws' failed: WebSocket is closed before the connection is established.
[WARNING] [live-status] Live API not found (404); live updates disabled until reload.
The WebSocket message identified src/components/live-status.ts:208 in its browser console location; that source file was not opened. These messages repeated across initial loads; the Japanese mobile reload displayed accumulated totals of two errors and four warnings. Those are repeated console messages, not six distinct findings.
Evidence: .playwright-cli\console-2026-11-03T12-33-21-844Z.log, .playwright-cli\console-2026-11-03T12-36-15-983Z.log, and .playwright-cli\network-2026-11-03T12-36-16-149Z.log. The final network evidence includes /api/live/ → 404, /de/get-started/resources/ → 200, and /hub/glossary/ → 200.
Impact: Live-status updates were disabled locally; the assigned sidebar links, destination content, and history still worked. No baseline comparison was run, so this is not attributed to this PR and is not an outstanding blocker.
Suggestion: Check live-service wiring separately if local live-status behavior matters; no sidebar-specific fix is inferred from this observation.
Passed Checks
- German docs initial-load Glossar target. On
/de/docs/, the rendered sidebar label “Glossar” had site-relative, trailing-slash href/hub/glossary/, not a German-prefixed Glossary URL. Its disclosure group was opened by an ordinary UI click. Evidence:04-initial-dom.txt,07-model-open.yaml. - German installation initial-load Glossar target. On
/de/get-started/install-cli/, the same rendered sidebar link retained/hub/glossary/; the page hadlang=deand canonicalhttps://aspire.dev/de/get-started/install-cli/. Evidence:17-install-dom.txt,49-collapsed-group-observation.txt. - Japanese telemetry initial-load target. The rendered Japanese label “用語集” had href
/hub/glossary/; the source page displayed heading “テレメトリ”,lang=ja, and its Japanese canonical. Evidence:24-ja-dom.txt,25-ja-desktop.yaml. - Actual desktop Glossary navigation, including client navigation. Ordinary clicks from the three assigned source pages and from the bounded resources control reached
/hub/glossary/. The publicperformance.timeOriginstayed unchanged across clicks, supporting client-side navigation rather than just validating href strings. Examples: German docs1793709187804before/after; installation repeat1793709327230.1before/after; Japanese telemetry1793709261261.8before/after. Evidence:08-before-glossary.txt,10-click-glossary.txt,11-glossary-dom.txt,22-resources-glossary.txt,26-ja-desktop-click-history.txt,53-desktop-install-click-result.txt. - Destination identity/content. The destination showed heading “Aspire glossary”, English term cards such as “AppHost”,
lang=en, and canonicalhttps://aspire.dev/hub/glossary/. It was real rendered content, not a 404 or empty shell. The displayed count was 40 terms; the terms themselves were not comprehensively reviewed. Evidence:11-glossary-dom.txt,34-mobile-click.txt,35-mobile-glossary.png,60-final-glossary.yaml. - Translated-link control preserves locale. “Ressourcen verstehen” had href
/de/get-started/resources/; actual desktop and mobile clicks reached that exact German-prefixed route withlang=de, heading “Understanding resources”, and the rendered German fallback-language notice. The desktop canonical remainedhttps://aspire.dev/de/get-started/resources/. English fallback prose was not mistaken for loss of route locale. The desktop/mobile transitions preservedperformance.timeOrigin. Evidence:19-install-and-resources-clicks.txt,21-resources-dom.txt,56-mobile-resources-retry.txt. - Desktop browser history. Back restored
/de/docs/, its original heading andlang=de; Forward restored/hub/glossary/, heading andlang=en. Japanese desktop Back similarly restored the telemetry route, Japanese heading andlang=ja. Same-document time origins were preserved. Immediate CLI history snapshots occasionally displayed the previous title during transition; subsequent DOM reads and CLI page summaries showed the destination settled correctly. Evidence:12-back.txt–15-forward-dom.txt,26-ja-desktop-click-history.txt. - Mobile ordinary menu and links. The Japanese “メニュー” and German “Menü” buttons exposed the sidebar. After ordinary disclosure expansion where needed, Japanese “用語集” and German “Glossar” clicks reached the unprefixed English Glossary through client navigation. The Japanese destination reported the menu button's
aria-expanded=false. Evidence:30-mobile-menu.txt,32-mobile-link-visibility.txt,34-mobile-click.txt,56-mobile-resources-retry.txt,57-mobile-de-glossary.txt. - Mobile browser history. Back restored the Japanese telemetry route/heading/language and Forward restored the English Glossary. The mobile document time origin stayed
1793709273694.9. Evidence:36-mobile-back.txt–39-mobile-forward-dom.txt. - Bounded desktop/mobile usability. The target link was visible and normally clickable after scrolling its sidebar. Desktop Glossar bounding box was within the 1440 × 900 viewport; Japanese mobile link bounding box was x=42, y≈407, width=307, height=34. Mobile menu and Glossary document widths were 375 pixels for a 375-pixel viewport, with no observed horizontal overflow in these tested views. Screenshots were opened and visually inspected. Evidence:
32-mobile-link-visibility.txt,33-ja-mobile-sidebar.png,35-mobile-glossary.png,51-expand-desktop-visibility.txt,52-desktop-visible-glossar.png,57-mobile-de-glossary.txt.
Failed attempts and recovery
These attempts are retained as execution evidence, not silently discarded and not counted as product regressions:
43-de-mobile-control-glossary.txt:TimeoutError: locator.scrollIntoViewIfNeeded: Timeout 5000ms exceeded, waiting for the accessible “Ressourcen verstehen” link.46-desktop-visibility.txt: the same timeout while waiting for “Glossar”.48-desktop-install-click-result.txt:TimeoutError: locator.click: Timeout 5000ms exceeded, waiting for “Glossar”.- Public DOM inspection in
49-collapsed-group-observation.txtshowed both links existed with correct hrefs but their enclosing “Modellieren Sie Ihre App” disclosure was closed. The attempts had assumed it remained expanded. An ordinary summary click exposed the links; desktop and mobile retries passed (51–57evidence files). No force click, handler invocation, or DOM state mutation was used. 47-desktop-visible-glossar.pngwas captured following a failed visibility attempt and is not proof of target-link visibility. The replacement evidence is52-desktop-visible-glossar.png.- The grouped interaction in
19-install-and-resources-clicks.txtexecuted successfully, but itsconsole.logreturn values were not rendered by the CLI. This evidence limitation was corrected with explicit subsequent DOM observations and a repeat installation-to-Glossary click returning its result (21,22,53).
Knowledge Gaps
None required built-in Aspire/product knowledge to fill a documentation gap within the assigned navigation task. Browser navigation concepts and the supplied acceptance scope were sufficient. This does not claim that unchanged installation guidance or Glossary definitions have no knowledge gaps.
Recommendations
- Priority fixes: None established for the changed sidebar behavior.
- Documentation gaps: None established in the assigned scope.
- Product/local environment: Retain W1 as an environment observation; do not infer a regression or expand this review into unrelated live-status work.
- Review integration: Preserve these independent Phase B findings and failure/recovery notes verbatim when combining with Phase A. This report does not supply or replace Phase A claim verification.
Cleanup and persistence
- Closed only the owned
pr1989browser session; named-sessiondelete-datareturned “No user data found for browser 'pr1989'.” Evidence:61-close.txt,62-delete-owned-data.txt. - Created no auxiliary browser contexts and performed no shared browser/profile/certificate/system-setting changes.
- Left the parent server running;
Get-Process -Id 38512still reportednode. Evidence:64-parent-server-process.txt. - Final HEAD remained
62d80e0e63a135672ea6c19c0dd188862bd5450f(63-final-head.txt). No checkout files were edited and no checkout/branch/reset/stash operation was performed. - Evidence and this report are retained only in the assigned
pr-1989-testdirectory. Generated manifest and freeze-summary hashes accompany this frozen report.
- TypeScript API parameter descriptions (#2009) - No locale prefix or hreflang alternates for English-only pages: the footer language picker (#1988), hreflang (#1987) and the sidebar Glossary link (#1989) - Footer link to the Aspire MIT license - Homepage: environment fade (#1993), stale AppHost animations (#1950), the dashboard carousel keeps the selected slide on activation - Search: first-result highlight with out-of-order renders (#2007), hover cursor flicker (#1977) - Live status over WebSocket (#1942) and twoslash hover, merged into the copies of the frontend scripts - Icon data 5.40.0 and the regenerated sprite - src/frontend now uses Bun: README and script usage updated
Summary
The Get started sidebar has a Glossary entry (
link: '/hub/glossary/'inconfig/sidebar/docs.topics.ts). Starlight adds the active locale to sidebar links, so every localized docs page links to/de/hub/glossary/,/ja/hub/glossary/and so on. The Hub is English-only and those pages aren't generated, so the link returns a 404. For example, https://aspire.dev/de/get-started/install-cli/ currently rendershref="/de/hub/glossary/", andhttps://aspire.dev/de/hub/glossary/returns 404.route-data-middleware.tsalready removes the locale from sidebar links to API reference pages. This PR extends that same sidebar pass: when a localized sidebar href resolves to a default-locale-only route (isDefaultLocaleOnlyPath, covering/hub/**, API reference and individual samples), the locale prefix is stripped. Links to translated docs pages keep their locale.src/utils/default-locale-only-routes.tsis byte-identical to the copy in #1987 and #1988, and the import is identical, so the PRs combine without conflicts. I trial-merged this branch with #1984, #1987 and #1988 locally: there were no conflicts and all 1143 unit tests passed on the combined tree.There is no visual change; only link targets change.
Third-party links and affiliations
None.
Validation
tests/unit/route-data-middleware-sidebar-locale.vitest.test.ts(3 tests):/de/hub/glossary/,/ja/hub/,/zh-cn/reference/samples/aspire-shop/stayed localized) and 2 passed (control cases).vitest run --config vitest.config.ts): 83 files, 1111 passed, 1 skipped.astro sync,compute-skill-digests --check,eslint . --max-warnings 0) passes, and Prettier check passes on the changed files.astro dev:/de/get-started/install-cli/and/ja/fundamentals/telemetry/now render onlyhref="/hub/glossary/"./de/get-started/resources/remains localized.🤖 Posted by AspireAgent (AI Agent)