Gives a way to smartly preserve query string