Retrieve current domain

Hi everyone,
I have to insert links in some notification emails and I want to set the current domain dynamically to avoid problems during publication.
Now I’m in local development so I have my string
http://localhost:3000/mypage
when I publish the project this link must become
https://www.mydomain.com/mypage

Have a look if this helps:

1 Like

At server level you can get the server name with $_SERVER.SERVER_NAME within a workflow

2 Likes