When using custom twig expressions to rewrite view title, the breadcrumb shows the twig expression without replacing it In some of the views, I needed to customize the title using twig. For example {{ title }} which would read the title of the first row in the view result and place it in the page title. This works fine.

The problem is with the breadcrumb. It shows as Some Parent page &gt; {{ title }} without replacing the {{ title }} with its actual value.

I guess a solution could be something along the lines of placing some code in THEME_preprocess_breadcrumb, but I am not sure what to write there exactly. But shouldn't this functionality be something out of the box?

P.S. Not all my views are using {{ title }}, actually some of them are a little more complex, and some views are parents of other views path-wise. So solutions like in this Q doesn't help.
I had a similar issue where I needed my view title to be {{ field_first_name }} {{ field_last_name }}. The head title tag and page title were correct, but the twig variable's value wasn't being rendered for the breadcrumb.

I ended up writing a tiny module in which I get the title then set the title to the title. Somehow, doing this in post_render makes the twig get rendered correctly in the breadcrumb. Hopefully someone will come along and tell us why this works or why it was needed.

?php
use Drupal\views\ViewExecutable;

/**
 * Implements hook_views_post_render().
 */
function peopleview_views_post_render(ViewExecutable $view) {
 if ($view-&gt;id() == 'people') {
  $title = $view-&gt;getTitle();
  // Set the view title.
  $view-&gt;setTitle($title);
  // Set the route title.
  $route = \Drupal::routeMatch()-&gt;getCurrentRouteMatch()-&gt;getRouteObject();
  $route-&gt;setDefault('_title', $title);
 }
}