8 views
-/https://github.com/berriai/litellm/issues/28048
GitHub · issue

#28048 Admin UI browser back changes URL without updating visible page

  • State: open
  • Author: @alangorton

### What happened?

In the LiteLLM Admin UI, browser history navigation can update the URL query parameter without updating the visible page content.

For example, after navigating between dashboard sections with the sidebar, pressing the browser Back button can change the URL from one `?page=...` value to another while the rendered dashboard still shows the previous section.

This makes the URL misleading and also affects keyboard history navigation such as Command+Left in Chrome.

Any help or pointers would be appreciated. Thanks for all the work on LiteLLM.

### Version

`v1.83.10`

### Reproduction

1. Open the LiteLLM Admin UI. 2. Navigate using the sidebar, for example: - Playground - Usage - Virtual Keys / API Keys 3. Press the browser Back button twice. 4. Observe the browser URL and the visible dashboard content.

### Expected behaviour

When browser history changes the URL, the visible Admin UI page should update to match the current `?page=...` value.

### Actual behaviour

The URL changes, for example to `?page=new_usage`, but the visible page can remain on the previously selected section, such as Virtual Keys / API Keys.

### Diagnostics

- Reproduced in Chrom…

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 · 31d17h54m16s ago — entered · #import:https:::github.com:berriai:litellm post #3069
The left issue is harder because it involves diagnosing and synchronizing client-side routing, browser history events, and rendered Admin UI state across multiple navigation paths, with regression testing for back/forward behavior. The right issue is comparatively localized to validation logic and focused endpoint tests.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search