Hello, @njyo
Please find below the example of template with link to entity.
{!Public-id!}
<% const utils = context.getService(`utils`); %>
Url is <%= utils.getEntityUrl(Entity.Type, Entity["Public-id"]) %>
Please note {!Public-id!}
is used for hidden initialisation of field Public-id
.
Thanks,
Oleg