You need to get content url using path, to make sure all translations work and you are going into the correct absolute path. This snippet shows how to get link for nodes by id.
Source code viewer
{{ path('entity.node.canonical', {'node': node.id}) }}Programming Language: Twig