Skip to main content
1 of 2
vinhdv
  • 1.4k
  • 8
  • 13

You can try hook_menu_local_tasks_alter

/**
 * Implements hook_menu_local_tasks_alter().
 */
function mymodule_menu_local_tasks_alter(&$data, $route_name, RefinableCacheableDependencyInterface &$cacheability) {
  foreach ($data['tabs'] as &$tab){
    $tab['routing_name']['#link']['url'] = Url::fromUri('https://reset.my.password/');
  }
}
vinhdv
  • 1.4k
  • 8
  • 13