var href = new URL(window.location.href); $(‘iframe’).attr(‘src’, $(‘iframe’).attr(‘src’) + ‘?favorites=’ + href.searchParams.get(“favorites”));