0

http://XXXXX.Com/dashboard/pay-return/?success=False I get this from redirect URL when I click cancel in a webpage(WebKit) I need to check status false or true in WebKit and make one popup back to home from the web page.

  • 2
    check this answer https://stackoverflow.com/a/45604360/2553730 – guru May 11 '20 at 14:45
  • thank you, I'm getting the URL but do how to get that status false or true in that? – Aravind kumar May 11 '20 at 14:48
  • Here's an example of how one can extract fragments like your `success` flag from a URL: https://stackoverflow.com/questions/57933247 – Gamma May 11 '20 at 14:52
  • Ah, sorry, I just saw that the flag in your URL is included in the query parameters, not fragment. So instead of `url.fragment` you would probably want to use `url.query` in your case. My bad. It's very similar, though. – Gamma May 11 '20 at 15:06
  • Here's something that fits a bit better: https://stackoverflow.com/questions/41421686 – Gamma May 11 '20 at 15:08

0 Answers0