From ac30e8b9da98ff19f85627b57b3718cb55b9913a Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Wed, 31 May 2023 10:46:23 +0200 Subject: [PATCH] Use the white label link if exists, otherwise, use the `main_app.root_path` --- app/views/shared/menu/_mobile_menu.html.haml | 2 +- app/views/shared/menu/_offcanvas_menu.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/shared/menu/_mobile_menu.html.haml b/app/views/shared/menu/_mobile_menu.html.haml index d714efbfcf..0e25ee57b0 100644 --- a/app/views/shared/menu/_mobile_menu.html.haml +++ b/app/views/shared/menu/_mobile_menu.html.haml @@ -6,7 +6,7 @@ %section.left .ofn-logo - %a{href: main_app.root_path} + %a{href: main_logo_link(@white_label_distributor)} - if @white_label_logo&.variable? = image_tag @white_label_distributor.white_label_logo_url(:mobile) - else diff --git a/app/views/shared/menu/_offcanvas_menu.html.haml b/app/views/shared/menu/_offcanvas_menu.html.haml index 3013528844..8f381a6b8c 100644 --- a/app/views/shared/menu/_offcanvas_menu.html.haml +++ b/app/views/shared/menu/_offcanvas_menu.html.haml @@ -2,7 +2,7 @@ %ul.off-canvas-list = cache_with_locale [ContentConfig.cache_key, @white_label_logo] do %li.ofn-logo - %a{href: main_app.root_path} + %a{href: main_logo_link(@white_label_distributor)} - if @white_label_logo&.variable? = image_tag @white_label_distributor.white_label_logo_url(:mobile) - else