seting location with location.href instead of location.replace