Preserve any available query strings when going into and out of offline mode.