diff --git a/Aberwyn/Views/Home/Menu.cshtml b/Aberwyn/Views/Home/Menu.cshtml
index b8e87a0..ef2c6c1 100644
--- a/Aberwyn/Views/Home/Menu.cshtml
+++ b/Aberwyn/Views/Home/Menu.cshtml
@@ -1,7 +1,9 @@
ï»ż@model Aberwyn.Models.MenuViewModel
@{
- Layout = "_Layout";
+ // Define a flag to hide the sidebar if the URL path matches '/nosidebar' (relative part after the controller)
+ bool hideSidebar = Context.Request.Path.Value.EndsWith("/nosidebar", StringComparison.OrdinalIgnoreCase);
+ Layout = hideSidebar ? null : "_Layout"; // No layout if the path ends with '/nosidebar'
}
@@ -20,14 +22,9 @@