Compare page throws 500 error when any branch/reference is not selected
Summary
When I go to Compare page and click compare button, It throws 500 error and in local machine it throws No route matches
error.
Steps to reproduce
- Go to Compare page
- Either select no branch or just select branch from one dropdown
- click
Compare
button
Expected behavior
It should show error message if no or one dropdown is not selected.
Actual behavior
It throws 500 error on GitLab.com and No Routes
(What actually happens)
Possible fixes
Adding Validation in frontend and backend