# Window.location.href Bug

**URL:** https://forum.kirupa.com/t/window-location-href-bug/277815
**Category:** Uncategorized
**Created:** [December 17, 2008, 3:14pm UTC](https://forum.kirupa.com/t/window-location-href-bug/277815 "2008-12-17T15:14:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lunetics](https://avatars.discourse-cdn.com/v4/letter/l/c2a13f/32.png) [@lunetics](https://forum.kirupa.com/u/lunetics)
#### Post date: [December 17, 2008, 3:14pm UTC](https://forum.kirupa.com/t/window-location-href-bug/277815/1 "2008-12-17T15:14:17Z")

</div>

Hello!  
I´ve problem with location.href in Google Chrome and Safari 3.2.1. I´ve read some posts on internet about a location-bug in the WebKit engine but couldn´t find a workaround. It works great in IE and Firefox. This is what I do:

```auto

var location = window.location.href;
window.location.href = location + "&redirect=1";

```

or

```auto

window.location.href = window.location.href + "&redirect=1";

```

Any suggestions?
