We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b269ba commit bf3d3b1Copy full SHA for bf3d3b1
web/src/components/ItemDescription.astro
@@ -10,6 +10,8 @@ const { description } = Astro.props;
10
let path = Astro.url.pathname;
11
// Remove trailing slash if any
12
path = path.endsWith('/') ? path.slice(0, -1) : path;
13
+// Also remove anything before the last slash, effectively removing folders
14
+path = path.substring(path.lastIndexOf('/'));
15
---
16
{description.includes("NEEDS DOCUMENTATION") ? (
17
<p style="color: var(--sl-color-orange); font-size: 2rem;"><strong>This page is incomplete! Help wanted!</strong>
0 commit comments