With Wix Code there are now a few different ways you can add a link to an element. Some links are static and others are dynamic.
A static link links to a regular page, an external URL, and other things like an email address or phone number. You can also link to a dynamic page that displays specific content. For these links you use the regular Link button in the editor,
which opens the What do you want to link to? panel, but with more options.
A dynamic link links to an action, a dynamic page for any item, or a URL from a field in a collection. For these links you use the element's Connect to Data panel and click the Links connect to dropdown.
You can read more about linking in Developer Tools here.