Fixed replaceState not storing query string.