Skip to content

Plaintext json output after using back button

Summary

Clear plaintext JSON output to screen when going back from a project to a filtered (responsive loaded) list or projects.

Steps to reproduce

  • Go to explore projects
  • In the right upper corner, use "Filter by name" without hitting enter (responsive load)
  • Click on a project in the search result
  • Use the back button in the browser

Example Project

Found in own hosted gitlab-ce, but I could reproduce this on gitlab.com.

What is the current bug behavior?

After using the back button you get the plaintext json output from (I guess) the search result.

What is the expected correct behavior?

Go back to explore projects (with or without the filter)

Relevant logs and/or screenshots

n/a

Output of checks

This bug happens on GitLab.com

Possible fixes

Maybe something like checking if it is a xmlhttprequest and if it isn't redirect the client to explore projects?