Strip paramaters off previous url

If we don't do this, then hitting the docs with `?version=xyz` will lock the docs at that version, and clicking the button for a different version will have no effect because the version old parameter will still be sent.