Use the white label link if exists, otherwise, use the main_app.root_path

This commit is contained in:
Jean-Baptiste Bellet
2023-05-31 10:46:23 +02:00
parent 668a573f12
commit ac30e8b9da
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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