PHP Smarty Tags isset referer Session -


i can't figure out missing. plan: if customer come homepage products, shall save link , customer shall able point.

if customer opens link directly, shall see link mainpage.

{php} $go_back = htmlspecialchars($_server['http_referer']); {/php} {if $go_back|strpos:"https://kundencenter.example.org" === false}  $_session['refererurl'] = $go_back;  {elseif isset($smarty.session.refererurl)} <li id='primary_navbar-account'><a href='".$_session[refererurl]."'><i class='fa fa-home'></i> homepage</a></li> {else} <li id='primary_navbar-account'><a href='https://example.org'><i class='fa fa-home'></i> homepage</a></li> {/if} 


Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -