Create custom link in embedded code of Collection Page

Hey there!
I’m creating a page with an overview of cities. All of these cities should link to the corresponding Collection Page. This is quite easy to do, but because I’m adding some custom code (to create a delay for display a page transition), I have to manually add the links in the embedded code.

I figured the best way to do this, is by adding a ‘slug’ field in the code editor, like this:

I thought it was working, but unfortunately all sections link to the same city (in this case, ‘Tulum’).
You can view the published site via this link.

Any idea how to solve this and have unique links for each section?


Here is my public share link: LINK
(how to access public share link)