Welcome to All Things GHL - Your Go To Resources for Code Snippets

Bypass AI Promo Landing Page

<script>
    // Function to redirect if the URL matches the default page
    function redirectToAgencyDashboard() {
        // Define the paths
        const defaultPath = '/ai-employee-promo';
        const targetPath = '/agency_dashboard/';

        // Check if the current path matches the default path
        if (window.location.pathname === defaultPath) {
            // Redirect to the target path
            window.location.pathname = targetPath;
        }
    }

    // Execute the redirection function
    redirectToAgencyDashboard();
</script>

Agency Level Instructions

  1. Go to Agency > Settings > Whitelabel

  2. Add code to the JS Code box.

  3. Save

  4. Refresh

Last updated

Was this helpful?