window.onload = function() {
// Get the URL parameters from the current page's URL
var urlParams = new URLSearchParams(window.location.search);
// Get the value of the 'redirect_url' parameter
var redirectLink = urlParams.get('redirect_url');
// Define the fallback URL
var fallbackUrl = "https://www.divorcelendingassociation.com/cdlp-directory.cfm";
// Check if the parameter has a value and redirect
if (redirectLink) {
window.top.location.href = redirectLink;
} else {
// Redirect to the fallback URL if the parameter is empty
window.top.location.href = fallbackUrl;
}
};