Double slashes can be kept in the url by inserting merge_slashes off; in the server block of the Nginx configuration file.
merge_slashes off;
Contents: