Add redirect from /docs/installation to /docs/#155
Merged
jackwildman merged 1 commit intomainfrom Feb 17, 2026
Merged
Conversation
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("/"); |
There was a problem hiding this comment.
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.
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.
Summary
/docs/installationto/docs/since the installation content was moved to the docs root page/docs/installationcontinue to workTest plan
/docs/installationand verify it redirects to/docs/🤖 Generated with Claude Code