Clicking Issues assigned to me option in the search bar leading to 404 error when Issues is disabled for the project

Problem

A customer reported a UX concern when clicking on Issues assigned to me, or Issues I created in the search bar in a project that has Issues disabled in the project settings under visibility, project features, permissions, they get a 404 error. What they would like to see is, when they click in the search bar, the Issues assigned to me, or Issues I created is not listed at all, thus providing no way to run into the 404 error

Possible Solution

Do not render the Issues assigned to me, or Issues I created in the search bar if the project has Issues disabled. Note, this means that the group/project context must be known when making the decision.

cc: @laurie_howitt