Skip to content

Commit

Permalink
fix(svelte-ui): update collection navigation links
Browse files Browse the repository at this point in the history
Fixes: 420d0d2 ("feat(svelte-ui): add basic landing page with links")
  • Loading branch information
nicholaschiang committed Nov 30, 2024
1 parent 20da9c7 commit f991b4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions svelte-ui/src/routes/collections/[collectionId]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
<a href="/collections">Collections</a>
<ChevronRight class="h-4 w-4 text-gray-200 dark:text-gray-800" />
{#await data.data then data}
<a href="/?q={encodeURIComponent(data.collection.brand.name)}"
<a href="/collections?q={encodeURIComponent(data.collection.brand.name)}"
>{data.collection.brand.name}</a
>
<ChevronRight class="h-4 w-4 text-gray-200 dark:text-gray-800" />
<a href="/?q={encodeURIComponent(formatSeasonName(data.collection.season))}"
<a href="/collections?q={encodeURIComponent(formatSeasonName(data.collection.season))}"
>{formatSeasonName(data.collection.season)}
{formatLevelName(data.collection.level)}</a
>
Expand All @@ -33,7 +33,7 @@
{#if data.collection.location}
<span
>(<a
href="/?q={encodeURIComponent(
href="/collections?q={encodeURIComponent(
formatLocation(data.collection.location).split(',')[0] ?? "",
)}">{formatLocation(data.collection.location)}</a
>)</span
Expand Down

0 comments on commit f991b4c

Please sign in to comment.