In my module http://magento2/app/design/frontend/company/module/Magento_Email/email/footer.html

there is this line:

  <p><a href="/about-us">{{trans "About Uss"}}</a></p>
  <p><a href="/contact">{{trans "Customer Servicee"}}</a></p>

However when I get the Email the link doesn't work.

When I copy the link this is what it looks like:



Can you help.

2 Answers 2


Got it!

<p><a href="{{store direct_url='contact'}}">{{trans "Customer Servicee"}}</a></p>
  • 1
    Is this working for you? Commented Jul 20, 2018 at 4:56


Apparently it needs to have the full path including the domain just as /contact it does not work and does not know the root public_html so it has to be hard coded like this:

  <p><a href="http://magento2/about-us">{{trans "About Uss"}}</a></p>
  <p><a href="http://magento2/contact">{{trans "Customer Servicee"}}</a></p>

I know that this might be a different question but it's related. Now does anyone know how get base url in this footer.html ??

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.