I would think it more appropriate to submit the form instead of setting window.location? If the form uses GET then the result should be the same. If not then we would now also support POST.