From edd55cd2fd7d01c052554cf93b75a2b56151ec54 Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Mon, 23 Mar 2026 16:37:28 +0100 Subject: [PATCH] fix: context-aware back button for cross-module admin navigation The tenancy merchant detail page now reads an optional ?back= query parameter to determine the back button destination. Falls back to /admin/merchants when no param is present (default behavior preserved). The loyalty merchant detail "View Merchant" link now passes ?back=/admin/loyalty/merchants/{id} so clicking back from the tenancy page returns to the loyalty context instead of the merchants list. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../loyalty/templates/loyalty/admin/merchant-detail.html | 4 +--- .../tenancy/templates/tenancy/admin/merchant-detail.html | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/modules/loyalty/templates/loyalty/admin/merchant-detail.html b/app/modules/loyalty/templates/loyalty/admin/merchant-detail.html index 2eb6fc30..a27a8c47 100644 --- a/app/modules/loyalty/templates/loyalty/admin/merchant-detail.html +++ b/app/modules/loyalty/templates/loyalty/admin/merchant-detail.html @@ -41,12 +41,10 @@ {{ _('loyalty.admin.merchant_detail.admin_policy') }} {{ _('loyalty.admin.merchant_detail.view_merchant') }} - | store(s)