Window.location not available

There is another topic for this.