feat: enhance navigation handling by updating navigation key and improving page state management

This commit is contained in:
Arunavo Ray
2025-05-24 12:52:02 +05:30
parent 70b3e412ad
commit 546db472e5
3 changed files with 13 additions and 2 deletions

View File

@@ -478,7 +478,11 @@ export default function Repository() {
</p>
<Button
variant="default"
onClick={() => window.location.href = "/config"}
onClick={() => {
window.history.pushState({}, '', '/config');
// We need to trigger a page change event for the navigation system
window.dispatchEvent(new PopStateEvent('popstate'));
}}
>
Go to Configuration
</Button>