Skip to content

Conversation

@yuneng-jiang
Copy link
Collaborator

[Feature] Allow Root Path to Redirect when Docs not on Root Path

Relevant issues

This PR allows the user to set the root path to redirect to a URL of their choosing when DOC_URL is set and is not "/".

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have Added testing in the tests/litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • I have added a screenshot of my new test passing locally
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

Type

🆕 New Feature
✅ Test

Changes

image

With ROOT_REDIRECT_URL="/ui":
image

With ROOT_REDIRECT_URL="/ui/model_hub_table":
image

@vercel
Copy link

vercel bot commented Nov 19, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
litellm Ready Ready Preview Comment Nov 22, 2025 0:40am

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.

3 participants