Skip to content

Commit 1069b34

Browse files
committed
Default to Root
Previously, we defaulted to `Root/Web`. There are benefits to this, since there shouldn't be a legitimate reason for editors to modify (or even need to be aware of) the `Root`, and most content they _are_ interested in will be under `Root/Web`, so it's handy to have that section of the tree expanded by default. Unfortunately, this conflicts with the ability to handle an empty database. For now, we'll change the default to `Root`. We may want to determine if we can implement a more intelligent fallback, however, so that it still defaults to `Root/Web`, but can fall back to `Root` if the `Web` container isn't present.
1 parent 4081ca1 commit 1069b34

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

OnTopic.Editor.AspNetCore/EditorServiceCollectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ this IEndpointRouteBuilder routes
6060
name: "TopicEditor",
6161
areaName: "Editor",
6262
pattern: "OnTopic/{action}/{**path}",
63-
defaults: new { controller = "Editor", action="Edit", path = "Root/Web/" }
63+
defaults: new { controller = "Editor", action="Edit", path = "Root" }
6464
);
6565

6666
} // Class

0 commit comments

Comments
 (0)