preserve query string on redirect from index template