Skip to content

Commit

Permalink
fix: breadcrumb base path (#599)
Browse files Browse the repository at this point in the history
  • Loading branch information
ppvg authored Jul 22, 2024
1 parent b98f202 commit 9ba0712
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/src/lib/BreadcrumbNav.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script>
import { base } from "$app/paths";
import { page } from "$app/stores";
import { getBreadcrumbs } from "$lib/breadcrumbs.js";
import NavLink from "./NavLink.svelte";
Expand All @@ -10,7 +11,7 @@
<div>
<ul>
{#each breadcrumbs as crumb}
<li><NavLink href={crumb.route}>{crumb.name}</NavLink></li>
<li><NavLink href="{base}{crumb.route}">{crumb.name}</NavLink></li>
{/each}
</ul>
</div>
Expand Down
3 changes: 2 additions & 1 deletion icore_open_docs/src/lib/BreadcrumbNav.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script>
import { base } from "$app/paths";
import { page } from "$app/stores";
import { getBreadcrumbs } from "$lib/breadcrumbs.js";
import NavLink from "./NavLink.svelte";
Expand All @@ -10,7 +11,7 @@
<div>
<ul>
{#each breadcrumbs as crumb}
<li><NavLink href={crumb.route}>{crumb.name}</NavLink></li>
<li><NavLink href="{base}{crumb.route}">{crumb.name}</NavLink></li>
{/each}
</ul>
</div>
Expand Down

0 comments on commit 9ba0712

Please sign in to comment.