Skip to content

Remove format from end of URL for URLs that take a ref or path

Douwe Maan requested to merge dm-no-format-suffix into master

Extracted from https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/10566

Ensures namespace_project_blob_path(@namespace, @project, 'master/foo.md', format: :json) ends up as namespace/project/blob/master/foo.md?format=json rather than the (not-working) namespace/project/blob/master/foo.md.json, by moving all routes like this into scope format: false do.

Merge request reports