Skip to content

Commit

Permalink
fix breadcrumbs slug in Project_Collection page
Browse files Browse the repository at this point in the history
  • Loading branch information
milewskibogumil committed Nov 11, 2024
1 parent 7b0bc35 commit 90d3692
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/astro/src/pages/realizacje/[slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,14 @@ const page = await sanityFetch<{
})
if (!page) return Astro.rewrite('/404')
console.log(page.overview)
const metadata = await metadataFetch('Project_Collection', `${slugPrefix}${slug}`)
---

<Layout {...metadata}>
<Breadcrumbs
data={[
{ name: 'Realizacje', path: '/realizacje' },
{ name: page.name, path: `/realizacje/${slug}` },
{ name: page.name, path: slug },
]}
/>
<Hero {...page.hero} />
Expand Down

0 comments on commit 90d3692

Please sign in to comment.