Serve the home nav link from PocketBase, not a hard-coded copy
This commit is contained in:
1 parent
1bdb026669
commit
3fd4068762
8 files changed
+26
-40
No files matched your search
@@ -85,9 +85,9 @@ public sealed class PocketBaseClientTests(PocketBaseFixture pocketBase)
|
||||
|
||||
var home = pages.Single(p => p.Slug == "home");
|
||||
home.Embed.ShouldBe(["posts", "events"], ignoreOrder: true);
|
||||
// Home has no menu slot: the brand is the home link, so a "Start" nav
|
||||
// entry would be redundant. NavBuilder filters it out via this empty value.
|
||||
home.Location.ShouldBe("");
|
||||
// Home sits in the header like every other page (location is required); it
|
||||
// is the single source of the home nav link.
|
||||
home.Location.ShouldBe("header");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in new issue
Block a user