Naveed Metlo
Naveed Metlo

Reputation: 385

How to redirect Chargify hosted page to different URL

I have chargify hosted page but i would like to redirect it to different url as chargify have limited customization allowed on their public hosted pages, i have tried following code to redirect by putting into custom javascript area but it didn't work.

 window.onload = function() {
            setTimeout(function() {
                window.location = "https://reference.chargify.com/v1/subscriptions/create-subscription";
            }, 100);
        };

Looking forward to solution, thanks

Upvotes: 0

Views: 91

Answers (1)

Wendy Smoak
Wendy Smoak

Reputation: 168

I think it needs to be window.location.href (not just window.location). It worked for me with that addition.

This answer suggests that window.location.replace is preferable How do I redirect to another webpage?

Upvotes: 0

Related Questions