diff --git a/src/Files.App/Views/ModernShellPage.xaml.cs b/src/Files.App/Views/ModernShellPage.xaml.cs index de6c7637a4b2..b60f5cb02443 100644 --- a/src/Files.App/Views/ModernShellPage.xaml.cs +++ b/src/Files.App/Views/ModernShellPage.xaml.cs @@ -319,7 +319,7 @@ public override void NavigateToPath(string? navigationPath, Type? sourcePageType navigationPath.TrimEnd(Path.DirectorySeparatorChar).Equals( FilesystemViewModel.WorkingDirectory.TrimEnd(Path.DirectorySeparatorChar), StringComparison.OrdinalIgnoreCase)) && - (TabItemArguments.NavigationArg is not string navArg || + (TabItemArguments?.NavigationArg is not string navArg || string.IsNullOrEmpty(navArg) || !navArg.StartsWith("tag:"))) // Return if already selected {