diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index ce6787b9..36f9b4e9 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -415,7 +415,13 @@ function App() { {selectedVersion ? ( navigate(`/version/${e.target.value}`)} + onChange={(e) => { + const currentPath = location.pathname; + const newVersion = e.target.value; + // Replace current version in path with new version to keep same page + const newPath = currentPath.replace(`/version/${selectedVersion}`, `/version/${newVersion}`); + navigate(newPath); + }} className="text-xs text-gray-600 dark:text-gray-400 bg-transparent border-none focus:outline-none cursor-pointer hover:text-blue-600 dark:hover:text-blue-400" > {availableVersions.map((version) => ( @@ -424,11 +430,7 @@ function App() { ))} - ) : ( - - Choose version - - )} + ) : null}