How to change taxonomy url in node view page? How to change  taxonomy url in node view page in Drupal 8?

In node view page I am getting taxonomy term url pattern as term/{%term_id}. I want to change taxonomy term url to custom url in Drupal 8.

Any help?
the code below replaces term/{%term_id} by node/39?technologie={%term_id} with THEME_preprocess_field :

use Drupal\Core\Url;

function MYTHEME_preprocess_field__FIELD_TAXO_MACHINE_NAME(&amp;$variables, $hook){

    foreach ($variables['items'] as $index =&gt; $item) {

      $route_name = 'entity.node.canonical';
      $params     = 39;
      $tid = $item['content']['#options']['entity']-&gt;id();

      $options = [
        'query' =&gt; ['technologie' =&gt; $tid],
      ];

     $url = Url::fromRoute($route_name, array('node' =&gt; $params), $options);
     $variables['items'][$index]['content']['#url'] = $url;
  }
}