I have a weird situation. Somehow some routes got corrupted and I cannot fix them.
/user/register are corrupted, the
/user/password works just fine.
After looking for database queries I found out that at some point drupal is looking for node entity instead of user entity and since no node with that ID is found it will throw 404 error (but the user in the breadcrumb is the correct one). I will attach some screenshots of this.
Any idea on how to fix this? Using devel to rebuild the menu did not fix the issue. Clearing the cache did not fix the issue.