if ( ! window.location.origin ) {
      fullURL = window.location.protocol + '//' + window.location.hostname + ( window.location.port ? ':' + window.location.port: '' ) + '/' + slug;
    } else {
      fullURL = window.location.origin + '/' + slug;
    }