Skip to content

docs(start): fix broken routing-side guide link in authentication primitives (#7701)#7705

Open
EduardF1 wants to merge 1 commit into
TanStack:mainfrom
EduardF1:docs/fix-authenticated-routes-link
Open

docs(start): fix broken routing-side guide link in authentication primitives (#7701)#7705
EduardF1 wants to merge 1 commit into
TanStack:mainfrom
EduardF1:docs/fix-authenticated-routes-link

Conversation

@EduardF1

@EduardF1 EduardF1 commented Jun 26, 2026

Copy link
Copy Markdown

Summary

Fixes #7701.

The Authentication Server Primitives guide links to the routing-side Authenticated Routes guide twice using a relative file path:

[routing-side guide](../../../../router/guide/authenticated-routes.md)

That path resolves as a file within the repo, but the docs site renders it to an invalid URL (https://tanstack.com/start/latest/router/guide/authenticated-routes), which 404s — cross-project relative links don't map onto the site's /{project}/latest/docs/framework/react/... URL structure.

Fix

Switch both links to the absolute cross-project doc path already used elsewhere in these docs for Router links (e.g. [Router Authentication Guide](/router/latest/docs/framework/react/guide/authenticated-routes) in authentication-overview.md):

/router/latest/docs/framework/react/guide/authenticated-routes

Two occurrences updated (intro paragraph + "See Also" list). No content changes.

Validation

  • Confirmed the target page exists at docs/router/guide/authenticated-routes.md → site URL /router/latest/docs/framework/react/guide/authenticated-routes.
  • Confirmed the new format matches existing working cross-project links in the same docs set (authentication-overview.md, learn-the-basics.md).

Not a duplicate

No open PR or other issue addresses #7701. Note: isr.md contains one more link with the same broken relative pattern (../../../../router/guide/data-loading.md); left out to keep this PR scoped to the reported issue, happy to include it if maintainers prefer.

Summary by CodeRabbit

  • Documentation
    • Updated links in the authentication guide to point to the latest authenticated routes documentation.
    • Improved cross-references so readers are directed to the current router guide location.

…mitives

The "routing-side guide" links in the Authentication Server Primitives guide
used a relative path (`../../../../router/guide/authenticated-routes.md`).
While that resolves as a file path, it renders to an invalid site URL
(`/start/latest/router/guide/authenticated-routes`) and 404s.

Use the absolute cross-project doc path that the rest of the docs already use
for Router links, e.g. `/router/latest/docs/framework/react/guide/authenticated-routes`.

Closes TanStack#7701

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The React authentication server primitives guide updates two links to the Router authenticated routes page under the /router/latest/... documentation path.

Changes

Documentation link refresh

Layer / File(s) Summary
Updated Router guide links
docs/start/framework/react/guide/authentication-server-primitives.md
The intro and “See Also” section now link to /router/latest/docs/framework/react/guide/authenticated-routes.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related issues

  • broken docs URL #7701: Updates the same broken routing-side guide links in authentication-server-primitives.md.

Poem

A bunny hopped through docs with glee,
and fixed two links for all to see.
The Router path now points just right,
a carrot trail in pages bright. 🐇

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the PR’s main change: fixing a broken routing-side guide link in the authentication primitives docs.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/start/framework/react/guide/authentication-server-primitives.md`:
- Line 6: The documentation link in the authentication server primitives guide
is using an absolute router URL instead of the required relative docs path.
Update the internal link in this markdown file to use a relative path from
docs/start/framework/react/guide/ to the authenticated routes doc under
docs/router/guide/, keeping the same link target but converting it to the
project’s relative-link format. Also make the same adjustment for the duplicated
reference noted in the comment.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: c87b9892-66e5-4ba7-881e-0c46adf03faf

📥 Commits

Reviewing files that changed from the base of the PR and between bb2daa6 and ebb5828.

📒 Files selected for processing (1)
  • docs/start/framework/react/guide/authentication-server-primitives.md

---

This guide covers the **server-side primitives** for building authentication in TanStack Start: session cookies, session lookup, OAuth, password-reset hardening, CSRF, and rate limiting. It pairs with the [routing-side guide](../../../../router/guide/authenticated-routes.md) (`_authenticated` layout, `beforeLoad`, redirects, RBAC).
This guide covers the **server-side primitives** for building authentication in TanStack Start: session cookies, session lookup, OAuth, password-reset hardening, CSRF, and rate limiting. It pairs with the [routing-side guide](/router/latest/docs/framework/react/guide/authenticated-routes) (`_authenticated` layout, `beforeLoad`, redirects, RBAC).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win

Revert to relative links per coding guidelines.

Both updated links use an absolute /router/latest/... path, but the project coding guidelines require relative links to the docs/ folder format for all internal documentation. As per coding guidelines, docs/**/*.md files must use relative links to docs/ folder format (e.g., ./guide/data-loading) in internal documentation.

The destination file appears to live at docs/router/guide/authenticated-routes.md (per the supplied context snippet from docs/router/guide/authenticated-routes.md:1-8). The correct relative link from this file's location (docs/start/framework/react/guide/) should traverse to docs/router/guide/authenticated-routes.md.

🔗 Proposed relative link fix
-This guide covers the **server-side primitives** for building authentication in TanStack Start: session cookies, session lookup, OAuth, password-reset hardening, CSRF, and rate limiting. It pairs with the [routing-side guide](/router/latest/docs/framework/react/guide/authenticated-routes) (`_authenticated` layout, `beforeLoad`, redirects, RBAC).
+This guide covers the **server-side primitives** for building authentication in TanStack Start: session cookies, session lookup, OAuth, password-reset hardening, CSRF, and rate limiting. It pairs with the [routing-side guide](../../../router/guide/authenticated-routes.md) (`_authenticated` layout, `beforeLoad`, redirects, RBAC).
-- [Authenticated Routes (Router)](/router/latest/docs/framework/react/guide/authenticated-routes) — the routing-side guide.
+- [Authenticated Routes (Router)](../../../router/guide/authenticated-routes.md) — the routing-side guide.

Also applies to: 352-352

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/start/framework/react/guide/authentication-server-primitives.md` at line
6, The documentation link in the authentication server primitives guide is using
an absolute router URL instead of the required relative docs path. Update the
internal link in this markdown file to use a relative path from
docs/start/framework/react/guide/ to the authenticated routes doc under
docs/router/guide/, keeping the same link target but converting it to the
project’s relative-link format. Also make the same adjustment for the duplicated
reference noted in the comment.

Source: Coding guidelines

@EduardF1

Copy link
Copy Markdown
Author

On the CodeRabbit link-depth note: I left the absolute /router/latest/... links intentional for now. This docs area already uses absolute cross-package links, and the suggested relative path would resolve under docs/start/router/... from this file rather than the intended router docs root. Happy to switch if maintainers prefer all-relative links here, but I don't want to churn a working cross-package docs convention just to satisfy the bot.

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.

broken docs URL

1 participant