I want to add a tab link in the login block (user / login). Like "Login", "Register", link "Reset password". But my custom tab must link to a specific node. So I added this to my custom module (test_module.links.task.yml):
test_module.user.test_link: Title: & # 39; Test Link & # 39; route_name: entity.node.canonical path_parameters: node: & # 39; 3 & # 39; base_route: user.page
The link tab appears correctly in / user / login BUT in all the nodes of the website as well. I guess that's because the entity.
Do I really have to do my own access verification for that? Or is my base wrong route? But base_route: user_login is not working.