diff --git a/gitnexus-web/src/App.tsx b/gitnexus-web/src/App.tsx index 3c626949c..e15711c7b 100644 --- a/gitnexus-web/src/App.tsx +++ b/gitnexus-web/src/App.tsx @@ -61,6 +61,11 @@ const AppContent = () => { setProjectName(projectName); setCurrentRepo(projectName); + // Update URL so F5 / bookmarks preserve which repo is open + const url = new URL(window.location.href); + url.searchParams.set('project', projectName); + window.history.replaceState(null, '', url.toString()); + // Build KnowledgeGraph from server data for visualization const graph = createKnowledgeGraph(); for (const node of result.nodes) {