patching swagger ui to drop the last section of the url