From 80cb683455d0e281a9662a9f5043541370ccbd40 Mon Sep 17 00:00:00 2001 From: Slava Maksimov Date: Thu, 2 May 2024 19:44:04 +0300 Subject: [PATCH] fix: issue with incorrect conditions --- layout/theme.liquid | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/layout/theme.liquid b/layout/theme.liquid index ef692b5..472a662 100644 --- a/layout/theme.liquid +++ b/layout/theme.liquid @@ -151,7 +151,12 @@ - The template is defined (will be undefined for app proxies like /apps|a|community|tools/*) - The current template is not the login page, unless multipass login is enabled {% endcomment %} - {%- assign should_redirect = template != blank and template.name != 'login' or settings.multipass_login -%} + {%- liquid + assign should_redirect = false + if settings.multipass_login or template != blank and template.name != 'login' + assign should_redirect = true + endif + -%} {%- if settings.storefront_hostname != blank and should_redirect -%}