Holen Sie sich die tatsächliche URL in Variable
var currentLocation = window.location;
Prickly Pheasant
var currentLocation = window.location;