change redirect to location.href to fix IE

-changed redirect to /edit with query parameters to w.location.href