Tags: mlflow-oidc/mlflow-oidc-auth
Tags
fix: prefix relative URLs with runtime config base path (#199) ## Description (Updated after Copilot review): This PR fixes issue #198 by ensuring all API calls and navigation properly handle the basePath from runtime config. ## Changes **1. BasePath-aware API calls** Updated services and components to use `resolveUrl` for proper basePath prefixing: - Access token modal - Trash, user, and webhook services - Permissions management (normal and regex views) - Added tests verifying basePath prefixing from runtime config **2. Fixed double base path navigation bug** Discovered and fixed an additional bug where row action URLs were being double-prefixed: - Changed row action URLs to use router-relative paths - Ensures `uiPath` is only applied once by the router - Added basename-aware router tests to validate correct navigation ## Testing * Added test cases for the code changes and additions. * Deployed behind proxy with custom basePath (/mlflow) by building the UI through the following dockerfile: ```dockerfile FROM ghcr.io/mlflow-oidc/mlflow-tracking-server:3.9.0-6.6.4-20260130 COPY mlflow_oidc_auth/ui/ /mlflow/.venv/lib/python3.12/site-packages/mlflow_oidc_auth/ui/
PreviousNext