Disabling issues feature results in 404 page when selecting create an issue
Summary
Toggling the issues feature in the project settings causes the Issues link on merge request code reviews to result in a 404 error.
Steps to reproduce
- Create a new private project, can be in your own namespace.
- Now go to Project Settings > General and expand the Visibility, project features, permissions section Disable Issues
- Save changes
- When you submit a merge request and then perform a review you have the option to resolve thread or create an issue. The create an issue icon is greyed out, but when selected it redirects you to a 404
What is the current bug behavior?
When the create issue icon ( greyed out) is selected you’re redirected to a 404 error page
What is the expected correct behavior?
The button should not be clickable. Instead it should show a tooltip with the text "You cannot create a new issue, as this project has issues disabled."
Relevant logs and/or screenshots
Output of checks
This occurs on GitLab.com, have not tested on self-hosted.
cc: @abentley_ssimwave
Edited by 🤖 GitLab Bot 🤖