Have you set {{ domain }} somewhere in your code that you haven't copy pasted here? If not, it's not a valid HubL variable, you need {{ request.domain }} and you need to add the protocol to it, e.g.
Have you set {{ domain }} somewhere in your code that you haven't copy pasted here? If not, it's not a valid HubL variable, you need {{ request.domain }} and you need to add the protocol to it, e.g.