From 3fac776752322761404cd6150eacfc3ac0cf5e72 Mon Sep 17 00:00:00 2001 From: unwox Date: Tue, 25 Nov 2025 22:28:15 +0600 Subject: small navigation improvements --- pages/shop/_product/index.fnl | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'pages/shop/_product/index.fnl') diff --git a/pages/shop/_product/index.fnl b/pages/shop/_product/index.fnl index 30cbc33..6903144 100644 --- a/pages/shop/_product/index.fnl +++ b/pages/shop/_product/index.fnl @@ -57,11 +57,21 @@ (HTML [:div {:class "content"} (if (not agreed-to-cookies?) (templates.cookies-agreement) "") - [:div {:class "back"} [:a {:href "/shop"} "⟵ Обратно к списку"]] + ;; this method of going back to the list requires JS and is bug prone but + ;; at the same time it's the simplest one. doing the same thing without + ;; JS would require storing "back URL" in query parameter (which will make + ;; URLs ugly and also hurt SEO) or in a cookie (which is brittle) + ;; TODO: also add