diff --git a/client/src/components/layout.tsx b/client/src/components/layout.tsx index ed9c991b..b315e8b8 100644 --- a/client/src/components/layout.tsx +++ b/client/src/components/layout.tsx @@ -11,7 +11,7 @@ interface ILayoutProps { } const Layout = ({children, location}: ILayoutProps) => { - const isWidthFullPage = location.pathname.endsWith('/cejst'); + const isWidthFullPage = location.pathname.match(/cejst\/?/); const conditionalAside = isWidthFullPage ? <> : ; const gridCssClass = isWidthFullPage ? ' desktop:grid-col-12' : 'desktop:grid-col-9';