Export funktion

So… I feel a bit stupid here but can’t get the connection correct… maybe I’m just to tired but anyway, I’ve learned that no questions are to stupid to ask so…
I’ve got a simple list of artists that will come to a festival and when you see the list you have a choise to read more about a certain artist, but I cant find the correct export funktion to get there onClick… I’ve tried so much now so I got confused…
I know that I might not need all the Import but just put them there anyway.

Are you displaying the artists/bands in a repeater? As if you are then you need to make sure that you use the correct code for working with repeaters and elements inside a repeater.
https://www.wix.com/corvid/reference/$w.Repeater.html
https://www.wix.com/corvid/forum/corvid-tips-and-updates/example-input-repeaters

Also, what are the page urls for the artists/bands, do they have their own seperate pages or are you linking them to a dynamic page which is specified by the artists id?

Finally, is the page shown above a static page or a dynamic page which is being linked to the artists/band static or dynamic page?

If it is static to static, then the code for the button link should look something like this.

import wixData from 'wix-data';
import wixLocation from 'wix-location';

$w.onReady(function() {
});

export function button1_click(event) {
wixLocation.to(`/yourartistpageurl`);
}

If it is dynamic to dynamic page then simply link like in this example here.
https://www.vorbly.com/Vorbly-Code/WIX-CODE-LINK-TWO-DYNAMIC-PAGES

The site with the repeater is a static page just showing short information about the band/artist, then when click “Read more” you come to a dynamic page showing more information about that specific artist/band.
I guess there´s something missing to point at that specific id in the repeater.