Skip to content

Instantly share code, notes, and snippets.

@hoitomt
Created March 19, 2014 19:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hoitomt/9649943 to your computer and use it in GitHub Desktop.
Save hoitomt/9649943 to your computer and use it in GitHub Desktop.
var hash = window.location.hash;
var token = '0007zWwBHQBqmKj6KIDMo5HENldn9hwYpfq8EPhqkn';
var redirectUrl = 'https://reviews.local.apartmentguide.com/#' + token;
var url = 'https://primediaTest.okta.com/login/sessionCookieRedirect?token=' + token + '&redirectUrl=' + redirectUrl;
if(!hash.length) {
window.location.replace(url);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment