Skip to content

Commit 6c2dd04

Browse files
committed
Fix recursive back parameter in customer sign-in URL
1 parent 3d96530 commit 6c2dd04

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎modules/ps_customersignin/ps_customersignin.tpl‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@
4444
</a>
4545
{else}
4646
<a
47-
href="{$urls.pages.authentication}?back={$urls.current_url|urlencode}"
47+
{if $urls.pages.authentication|strpos:'back=' !== false}
48+
href="{$urls.pages.authentication}"
49+
{else}
50+
href="{$urls.pages.authentication}?back={$urls.current_url|urlencode}"
51+
{/if}
4852
title="{l s='Log in to your customer account' d='Shop.Theme.Customeraccount'}"
4953
rel="nofollow"
5054
>

0 commit comments

Comments
 (0)