My site receives a redirect from a third-party API which provides an access token. The redirect URL is structured like this: https://example.wixsite.com/path#access_token=123456
I have two problems here:
1) Wix seems to ignore the # and, on redirect, the URL is automatically changed to the following: https://example.wixsite.com/path#/access_token=123456
To solve this, I would like to reformat the URL before routing.
2) In order to reformat the URL, I need to get the hash portion. The Wix Code API Docs show that if I do wixRouterRequestObject.url or wixLocationObject.url then the hash portion should be included. This is not the case.
The URL property returns the following: https://example.wixsite.com/path/
Anybody have a solution for this?