Changing the logo link based on the current page

Hi,

How can we do this?

If the page link contains “/en” [ for example www.shopname.com/en/collection/products/shirt ]
When you click the logo, logo directs you to www.shopname.com/en

If the page link contains “/fr” [for example www.shopname.com/fr/collection/products/shirt ]
When you click the logo, logo directs you to www.shopname.com/fr

Thanks

Hi,
Actually its not possible to write something between shopname.com/ and /collection
if you use subdomain for each store(If you have multiple stores), then I think no need of condition

{% if request.path contains '/fr/' %}
  Logo here
{% elsif request.path contains '/en/' %}
  Logo here
{% else %}
  Logo here
{% endif %}