Filter dynamic page content through 2 dropdowns

@danvavra You don’t take the values from the URL itself, rather extract them from the dataset itself.

$w('#dataset').onReady(async() => {
    const item = $w('#dataset').getCurrentItem();
    const team = item.team;
    $w('#teams').value = team;
    
    /* Now we have the team of the player, let's query
    the collection and get the seasons available of this team */
    await wixData.query('collection').eq('team', team).distinct()
    .then((result) => {
            
        let seasons = [];
        for (let i = 0; i < result.length; i++) {
            let season = result.items[i].season;
            seasons.push(season);
        }
        $w('#seasons').options = seasons;
    })    
})

Hope you find it useful.