Forum Academy Marketplace Showcase Pricing Features

How to "get data from page url" after the "#"?


I’m building a new plugin that required OAauth 2.0 authentifications, to do so I’ve coded an action to redirect the user to the API endpoint, when the user have completed the authentification, they redirect back the user to my page including the access token. At this point everything work perfectly.

But, the access token is not in a querystring as i’m used to work with. Instead being after the “?” its after the “#”. Example : “…”

Because of that, the usual “get data from page url” does not recognise the access_token and does not work.

What would be the simplest way to get the access token value?

Check out this thread

1 Like