diff --git a/Oqtane.Server/Components/App.razor b/Oqtane.Server/Components/App.razor index 82a5d4502..c1684977b 100644 --- a/Oqtane.Server/Components/App.razor +++ b/Oqtane.Server/Components/App.razor @@ -522,7 +522,7 @@ " let currentUrl = window.location.pathname;" + Environment.NewLine + " Blazor.addEventListener('enhancedload', () => {" + Environment.NewLine + " let newUrl = window.location.pathname;" + Environment.NewLine + - " if (currentUrl != newUrl) {" + Environment.NewLine + + " if (currentUrl !== newUrl || window.location.hash === '') {" + Environment.NewLine + " window.scrollTo({ top: 0, left: 0, behavior: 'instant' });" + Environment.NewLine + " }" + Environment.NewLine + " currentUrl = newUrl;" + Environment.NewLine +