I'm using Postmaster plugin to handle my e-mails using a custom service for SendGrid. In my templates I use Twig's url()
function to create my URLs.
When they are sent by Postmaster, craft->template->render()
method creates a Control Panel url instead of a normal front-end URL. Which results in URL's not found when clicked in the e-mail.
Is this normal behaviour when the render()
method is called from the control panel? Or can I override this in Twig templating maybe? The Craft docs don't mention it.
In the meantime I can create my URL's using {{ siteUrl }}, but I'm wondering if I'm missing something here.