APIs & Integrations

efigial
Member

OAuth redirect url with location hash (#)

SOLVE

Hello!
My redirect_uri contains a location hash (#) e.g
http://localhost:3000/#/mypage
The OAuth params break the URL like this:

http://localhost:3000/?code=xxx&state=xxxx#/mypage

Is there anything I can do on the URL so the params will go to the end eg: 
http://localhost:3000/#/mypage?code=xxx&state=xxxx ?

0 Upvotes
1 Accepted solution
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

OAuth redirect url with location hash (#)

SOLVE

Welcome, @efigial.

 

Unfortunately, I don't know of a way around this.

 

RFC 3986 section 3.0 shows that fragment identifiers are normally placed after query parameters:

 

foo://example.com:8042/over/there?name=ferret#nose

 

The OAuth parameters are appended in a manner consistent with this standard.

Isaac Takushi

Associate Certification Manager

View solution in original post

1 Reply 1
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

OAuth redirect url with location hash (#)

SOLVE

Welcome, @efigial.

 

Unfortunately, I don't know of a way around this.

 

RFC 3986 section 3.0 shows that fragment identifiers are normally placed after query parameters:

 

foo://example.com:8042/over/there?name=ferret#nose

 

The OAuth parameters are appended in a manner consistent with this standard.

Isaac Takushi

Associate Certification Manager