fix: link category badge to home page instead of deprecated search route

This commit is contained in:
2026-02-07 15:43:56 +01:00
parent ae1e9da9fa
commit affa8bec39

View File

@@ -185,7 +185,7 @@ class PageListing extends HTMLElement {
<!-- Header -->
<header class="listing-header">
${categoryName ? `<a href="#/search?category=${this.listing.category?.slug}" class="badge badge-primary">${escapeHTML(categoryName)}</a>` : ''}
${categoryName ? `<a href="#/?category=${this.listing.category?.slug}" class="badge badge-primary">${escapeHTML(categoryName)}</a>` : ''}
<h1>${escapeHTML(this.listing.title)}</h1>
<div class="listing-price-wrapper">
<p class="listing-price">${priceInfo.primary}</p>