Skip to content

Commit 015d8fb

Browse files
committed
Remove the 'back home' link from the deployed '/' page.
1 parent 2e7fdaf commit 015d8fb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

frontend/src/layouts/Layout.astro

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ const { title } = Astro.props;
1515
<title>{title}</title>
1616
</head>
1717
<body>
18-
{Astro.url.pathname === "/" ? null : <a href="/">Back home.</a>}
18+
{
19+
Astro.url.pathname === import.meta.env.BASE_URL ? null : (
20+
<a href="/">Back home.</a>
21+
)
22+
}
1923
<slot />
2024
</body>
2125
</html>

0 commit comments

Comments
 (0)