Added a constraint to prevent menu links from linking to themselves. This was done to prevent the infinite loop during access checks identified in Issue #3322217.