Skip to content

Add redirect from /docs/installation to /docs/#155

Merged
jackwildman merged 1 commit intomainfrom
docs-installation-redirect
Feb 17, 2026
Merged

Add redirect from /docs/installation to /docs/#155
jackwildman merged 1 commit intomainfrom
docs-installation-redirect

Conversation

@jackwildman
Copy link
Contributor

Summary

  • Adds a permanent redirect from /docs/installation to /docs/ since the installation content was moved to the docs root page
  • Ensures old links to /docs/installation continue to work

Test plan

  • Visit /docs/installation and verify it redirects to /docs/

🤖 Generated with Claude Code

The installation content was moved to the docs root page. This redirect
ensures old links to /docs/installation still work.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
import { permanentRedirect } from "next/navigation";

export default function InstallationRedirect() {
permanentRedirect("/");
Copy link

Choose a reason for hiding this comment

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

Bug: The call to permanentRedirect("/") will redirect to the site root / instead of the docs root /docs/, because permanentRedirect does not automatically apply the basePath.
Severity: HIGH

Suggested Fix

To ensure the redirect points to the correct docs root, change the redirect call to explicitly include the base path: permanentRedirect("/docs/").

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: docs-site/src/app/installation/page.tsx#L4

Potential issue: The application is configured with `basePath: "/docs"`. The redirect
from `/docs/installation` is implemented using `permanentRedirect("/")` from
`next/navigation`. According to Next.js documentation, this function does not
automatically prepend the configured `basePath`. As a result, users navigating to the
old `/docs/installation` URL will be redirected to the site's absolute root (`/`)
instead of the intended docs root (`/docs/`). This breaks the backward compatibility
goal of the change.

Did we get this right? 👍 / 👎 to inform future reviews.

@jackwildman jackwildman merged commit 9b65c32 into main Feb 17, 2026
5 of 6 checks passed
@jackwildman jackwildman deleted the docs-installation-redirect branch February 17, 2026 18:45
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.

1 participant