How do I add local tasks menu to a views page display I have created a views page display that has the path /node/%node/sessions, contextually filtering by content ID. It also creates a "menu tab" called "Sessions". 

Therefore when I got to node/12 I see a local tasks menu: "View / Edit / Sessions" etc.

When I go to /node/12/sessions I see my view, filtered correctly by 12, but WITHOUT any local tasks tabs.

How should I make a local tasks menu appear on the view page node/12/sessions, (with the local tasks the same as the node/12 but with the sessions tab as active)?

Using this entry in my_module.links.task.yml succeeds in adding an entry to the node local tasks (still present if 'no menu' is selected in view UI). But it doesn't add the node local tasks to the views page.

view.event_sessions.page_1:
  title: Sessions
  route_name: view.event_sessions.page_1
  base_route: entity.node.canonical


Using views.view.event_sessions.page1 as the route throws a route not found error (although that is usually the correct route for a views page, so that's weird).
@Eyal was right. Some information:


Find the current route : /devel/routes gives you all the registered routes.
Or better : use the devel module &amp; web profiler submodule to display the Symfony2 toolbar, you will have a lot of useful information, especially the current route.


  You should find a route name as view.my_page.page_1 for example.

Create a modulename.links.action.yml (or modulename.links.local.yml) with this content:


 

view.my_page.page_1:
  route_name: view.my_page.page_1
  title: My button title
  appears_on:
    - view.my_page.page_1