Having trouble with your page after a social network redirect back to your registration flow? Simple solution is to plug in some re-redirect code. We've packaged it up for your convenience here:
https://cdn.ingo.me/custom-js/remove-socialnetwork-hash.js
Steps to Solve This Issue
- Visit
https://cdn.ingo.me/custom-js/remove-socialnetwork-hash.js
- Copy the script from that page
- Embed near the TOP of the <body> NOT at the bottom.
This code will essentially detect the existence of the infamous #_=_
location hash designation that facebook applies to your redirect URL or the #! location hash that LinkedIn adds to your redirect URL and remove it and reload the page as quietly as it can.
Generally the #_=_
or #! isn't a problem for most sites, just an annoying rewrite of the URL for no apparent reason, so usually you can just ignore it, but if it's causing your page issues, try this script out.
While it's possible to put this into the widget's custom-js setting, that's not ideal. Your custom-js will not run till much later in the page's lifecycle. Best to use this outside of the ingo paradigm, but if you must then it's workable.
Again, this is not typically a problem but for some tools, plugins, form helpers etc. it may cause issues, and the best course of action is to remove the hash location and reload without it.
Happy Un-Hashing.
Comments
0 comments
Please sign in to leave a comment.