From 297b8a8d5a27cedb4cb1a60690bf91c8842e4ae7 Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Fri, 3 Apr 2026 20:03:04 +0200 Subject: [PATCH] fix(hosting): preview link rewriting prepends storefront base_url MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CTA buttons in section macros use short paths like /contact which resolve to site root instead of the storefront path. The preview JS now detects short paths (not starting with /platforms/, /storefront/, etc.) and prepends the store's base_url before adding _preview token. Example: /contact → /platforms/hosting/storefront/batirenovation-strasbourg/contact?_preview=... Co-Authored-By: Claude Opus 4.6 (1M context) --- app/templates/storefront/base.html | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/app/templates/storefront/base.html b/app/templates/storefront/base.html index 686556e7..339f5179 100644 --- a/app/templates/storefront/base.html +++ b/app/templates/storefront/base.html @@ -221,20 +221,30 @@ {% endif %}