Last active
February 13, 2019 13:29
-
-
Save chinthakagodawita/fe6264f4e91a65d61dd1ce4e8ad062cd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.addEventListener("DOMContentLoaded", function(event) { | |
if ((document.referrer.endsWith('display/redirect') || document.referrer.endsWith('/tests')) && window.location.pathname === '/') { | |
console.log('Redirecting back to original URL to fix OAUth issue: ', document.referrer); | |
window.location = document.referrer; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment