Gymnastics Programs to fit everyone

var category = “8”; // Define the category in one place
// Function to check if a specific query parameter and value exist in the URL
function hasQueryParam(param, value) {
return new URLSearchParams(window.location.search).get(param) === value;
}
// Check if the category is already in the URL
if (!hasQueryParam(“category”, category)) {
var urlParams = new URLSearchParams(window.location.search);
urlParams.append(“category”, category);
window.location.search = urlParams.toString();
}
})();


