Skip to content

Commit e378fd6

Browse files
committed
Fixed issue where clicking home icon on the Omnibar from Tags panel search results would not navigate to home
1 parent 53466f5 commit e378fd6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Files.App/ViewModels/UserControls/NavigationToolbarViewModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,8 @@ public async Task HandleItemNavigationAsync(string path)
510510
return;
511511

512512
if (normalizedInput.Equals(ContentPageContext.ShellPage.ShellViewModel.WorkingDirectory) &&
513-
ContentPageContext.ShellPage.CurrentPageType != typeof(HomePage))
513+
ContentPageContext.ShellPage.CurrentPageType != typeof(HomePage) &&
514+
!ContentPageContext.ShellPage.ShellViewModel.IsSearchResults)
514515
return;
515516

516517
if (normalizedInput.Equals("Home", StringComparison.OrdinalIgnoreCase) ||

0 commit comments

Comments
 (0)