Skip to content

Commit bf3d3b1

Browse files
Fix corresponding old wiki article link
1 parent 7b269ba commit bf3d3b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

web/src/components/ItemDescription.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ const { description } = Astro.props;
1010
let path = Astro.url.pathname;
1111
// Remove trailing slash if any
1212
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('/'));
1315
---
1416
{description.includes("NEEDS DOCUMENTATION") ? (
1517
<p style="color: var(--sl-color-orange); font-size: 2rem;"><strong>This page is incomplete! Help wanted!</strong>

0 commit comments

Comments
 (0)