I want to print the local task bar used when users register/login/reset password at another part of the page, than the other local task bars.

The base route for these menu links is user.page.


Can I use twig to achieve this? Or do I need to use some preprocessing?

1 Answer 1


Local tasks is just a block, meaning you can use all the tools that blocks give you. Create two blocks, put them in both locations where you want to see it. On one block, configure path visibility to only show on user/, on the other one, configure it to show everywhere except on user/.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.