diff --git a/src/Files.App/Views/Shells/BaseShellPage.cs b/src/Files.App/Views/Shells/BaseShellPage.cs index 42f2bd43ce1e..ce051e9d6cc3 100644 --- a/src/Files.App/Views/Shells/BaseShellPage.cs +++ b/src/Files.App/Views/Shells/BaseShellPage.cs @@ -567,9 +567,7 @@ public virtual void Back_Click() var previousPageContent = ItemDisplay.BackStack[ItemDisplay.BackStack.Count - 1]; HandleBackForwardRequest(previousPageContent); - if (previousPageContent.SourcePageType == typeof(HomePage)) - ItemDisplay.GoBack(new EntranceNavigationTransitionInfo()); - else + if (ItemDisplay.CanGoBack) ItemDisplay.GoBack(); } @@ -578,7 +576,8 @@ public virtual void Forward_Click() var incomingPageContent = ItemDisplay.ForwardStack[ItemDisplay.ForwardStack.Count - 1]; HandleBackForwardRequest(incomingPageContent); - ItemDisplay.GoForward(); + if (ItemDisplay.CanGoForward) + ItemDisplay.GoForward(); } public void ResetNavigationStackLayoutMode()