easyXDM icon indicating copy to clipboard operation
easyXDM copied to clipboard

// being cut in the query

Open simon-rad opened this issue 7 years ago • 1 comments

Hello, I'm using your great library. We had to clone it and comment out this line https://github.com/oyvindkinsey/easyXDM/blob/master/src/Core.js#L333

The reason is - we have a query parameter in URL

https://domain.com:443/myframe/index.html?access_token=cZRLiMjyBYPDOxCcE0MiGY/plMVI07VGlRkL46dWkI//+bhvu4MUFd8kB19nlWNt2fVoH2fU5Myq4AWhu76QdQ==

And sometimes access token can contain two slashes //, and it is cut by that part of the code. and the token is not valid anymore. Maybe there is a way to skip that replacement? Or can I contribute and add a setting for that replacement?

simon-rad avatar Jun 30 '17 14:06 simon-rad

This is a bug, since this normalization is only intended to apply to the path component of the url, and not additional components such as the fragment.

This should be fixed such that logic similar to that on #338 was applied.

oyvindkinsey avatar Feb 10 '18 01:02 oyvindkinsey