get_the_permalink()
doesn’t echo
anything. It just returns a string so that you can further manipulate it.
You need the_permalink()
instead, which will echo
the link.
The difference used to be clear in the Codex but now, in the much inferior, “developer” code reference toward which WordPress is migrating it is not so clear.