Skip to content

Commit f6f590a

Browse files
authored
Fix: Fixed issue where opening tags from the sidebar would default to the Details View (#14523)
1 parent 4607303 commit f6f590a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Files.App/Views/Shells/BaseShellPage.cs

+5-3
Original file line numberDiff line numberDiff line change
@@ -506,9 +506,11 @@ public void NavigateWithArguments(Type sourcePageType, NavigationArguments navAr
506506

507507
public void NavigateToPath(string navigationPath, NavigationArguments? navArgs = null)
508508
{
509-
var layout = navigationPath.StartsWith("tag:")
510-
? typeof(DetailsLayoutPage)
511-
: FolderSettings.GetLayoutType(navigationPath);
509+
var layout = FolderSettings.GetLayoutType(navigationPath);
510+
511+
// Don't use Columns Layout for displaying tags
512+
if (navigationPath.StartsWith("tag:") && layout == typeof(ColumnsLayoutPage))
513+
layout = typeof(DetailsLayoutPage);
512514

513515
NavigateToPath(navigationPath, layout, navArgs);
514516
}

0 commit comments

Comments
 (0)