No Redirect URL? - yes there is

I’m just getting started with the square sandbox and can’t get past this seemingly misleading? error.

Application does not have a Redirect URL registered in the Developer Dashboard .

There is so a Redirect URL! it’s right there in the OAuth section in the Sandbox Redirect URL. https://somewhereouthere.com

I can’t be the first.

:Ron

1 Like

:wave: What is the application Id to the app that you are using?

I think I may have gotten past this but I won’t know until I get home as that’s where my static ip and the port forwarding is. Right now I’m stuck at work.

Sounds good! Let us know what you find. We’re always happy to help.

Just FYI I’ve got the same issue! “Application does not have a Redirect URL registered in the Developer Dashboard” whenever I log in to authorize my app. I made sure to go to the developer dashboard, add a https URL for the “Redirect URL” and hit save. But no luck.

Maybe it needs a few minutes to update on Square’s end. I’ll keep this updated.

So I did a hard refresh and saw the URL never actually saved on the backend… Weird. I just resubmitted, resaved, and refreshed (to check) and now it works!

Hmm, that is odd. Thanks for letting us know. :slightly_smiling_face:

1 Like

Use Javascript:

window.location.replace('http://example.com');

It’s better than using window.location.href = ‘http://example.com’;

Using replace() is better for javascript redirect because it does not keep the originating page in the session history, meaning the user won’t get stuck in a never-ending back-button fiasco.

If you want to simulate someone clicking on a link, use window.location.href

If you want to simulate an HTTP redirect, use window.location.replace

You can use assign() and replace methods also to javascript redirect to other pages like the following:

location.assign("http://example.com");

The difference between replace() method and assign() method(), is that replace() removes the URL of the current document from the document history, means it is not possible to use the “back” button to navigate back to the original document. So Use the assign() method if you want to load a new document, andwant to give the option to navigate back to the original document.