commit
9dc4ede692
@ -32,7 +32,8 @@ export default function Layout(props) {
|
|||||||
|
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
|
|
||||||
const isAllowedPath = allowedPaths.includes(location.pathname);
|
const isAllowedPath = allowedPaths.some(path => location.pathname.startsWith(path));
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<LayoutProvider>
|
<LayoutProvider>
|
||||||
<PageMetadata title={title} description={description} />
|
<PageMetadata title={title} description={description} />
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user