From 046a7460cacd89f7dbc10b17f8d038c0953b53e6 Mon Sep 17 00:00:00 2001 From: Flummi Date: Fri, 9 Jun 2023 15:31:59 +0200 Subject: [PATCH] using the normalized tags --- public/s/js/admin.js | 2 +- views/item.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/s/js/admin.js b/public/s/js/admin.js index 9664701..5384894 100644 --- a/public/s/js/admin.js +++ b/public/s/js/admin.js @@ -85,7 +85,7 @@ const flash = ({ type, msg }) => { [...document.querySelectorAll("#tags > .badge")].forEach(tag => tag.parentElement.removeChild(tag)); _tags.reverse().forEach(tag => { const a = document.createElement("a"); - a.href = `/tag/${tag.tag}`; + a.href = `/tag/${tag.normalized}`; a.style = "color: inherit !important"; a.innerHTML = tag.tag; a.addEventListener("click", editTagEvent); // tmp diff --git a/views/item.html b/views/item.html index 78dbc1d..08bc138 100644 --- a/views/item.html +++ b/views/item.html @@ -82,7 +82,7 @@ @if(typeof item.tags !== "undefined") @each(item.tags as tag) - {!! tag.tag !!}@if(session) ×@endif + {!! tag.tag !!}@if(session) ×@endif @endeach @endif