In my Grails 4 web-app defined 2 URL mappings
"/projects" ( controller: 'team', action: 'listProjects' )
"/projects/$projectid" ( controller: 'team', action: 'getProject' )
When, in the 2nd mapping, projectid param is erroneously passed as “” (empty string), the listProjects action is processed instead of getProject (the intended one).
Is there a way to do that? I'd actually want a "project not found" error to be returned in place of the list of projects.
Thanks in advance!