I think you can use ticket_url instead of ticket path here. That will include the protocol and the domain.