Skip to content
Snippets Groups Projects
Commit ccd439da authored by Gabriel Mazetto's avatar Gabriel Mazetto :spy_tone1:
Browse files

Merge branch 'build-reopen-json' into 'master'

Build path sends JSON file path

## What does this MR do?

Fixes an issue with browser caching JSON response on build page.

Steps to see:

- Open build (https://gitlab.com/gitlab-org/gitlab-ce/builds/2030226)
- Close tab
- Re-open tab

You should now see some JSON :disappointed: 

This MR appends `.json` to the end of the build URL so that the browser can't cache it as the same URL.


See merge request !4935
parents c73db50c 0d6d8376
No related branches found
No related tags found
1 merge request!4935Build path sends JSON file path
Pipeline #
Loading
Loading
@@ -67,4 +67,4 @@
= render "sidebar"
 
:javascript
new CiBuild("#{namespace_project_build_url(@project.namespace, @project, @build)}", "#{@build.status}", "#{trace_with_state[:state]}")
new CiBuild("#{namespace_project_build_url(@project.namespace, @project, @build, :json)}", "#{@build.status}", "#{trace_with_state[:state]}")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment