I have created user login link in the user account menu but the link is visible all the time(even for logged users). The user profile menu link and the user logout links are displayed properly(they are added by the user module).
My link definition doesn't differ from the user's module link definitions in any way but still this happens. Also the user.login route has proper requirements so this should just not happen but it does.
This is how user module defines menu links:
user.page: title: 'My account' weight: -10 route_name: user.page menu_name: account user.logout: title: 'Log out' route_name: user.logout weight: 10 menu_name: account
This is how I define my login link:
user.login: title: 'Log in' weight: -10 route_name: user.login menu_name: account