Not redirecting to correct redirect URL

finaureus
When navigating to https://kite.zerodha.com/connect/login?v=3&api_key=xxx
and after successfully user Logged In, the redirection URL coming is wrong.

I have given redirection URL as follows
http://localhost:4200/#/callback

and after the successful login application is redirecting to the wrong URL as follows
http://localhost:4200/?request_token=nanBPgSUKyApb2NVj4aMi1BVGxBoVepk&action=login&status=success#/callback

Expected URL be as follows
http://localhost:4200/#/callback?request_token=nanBPgSUKyApb2NVj4aMi1BVGxBoVepk&action=login&status=success

  • Vivek
    Anything after `#` is called hashparam and used only client side and usually for navigation by modern JS apps. So the right URL structure is `scheme:[//authority]path[?query][#fragment]` which is what we are doing here. You can read more about it here - https://en.wikipedia.org/wiki/URL#Syntax
  • finaureus
    But this type of query parameters are not read by Angular applications, will you please help me to add read parameters.
  • finaureus
    And I am working with other execution partners as well and I am getting the correct response from there.

    problem is with Zeroda only
  • finaureus
    any update
  • sujith
    I am afraid we can't do anything here. Kite Connect follows the standard procedure. You will have to handle it at your end.
    You may also enable history mode which makes angular have regular path instead of #
Sign In or Register to comment.