Display title, based on exposed filter of view

I’ve read these questions:

But it did not help.

My Drupal version is 9.1.9. I have views displaying Taxonomy terms. Each taxonomy term has fields, for example “Genre”. I have 16 different genres with “key|value” type.

I have exposed filter, based on genre field. I’ve added this field to Contextual filters and override the title, when filter value is in URL.

But!

  1. If there is no value in URL title displays “All”, but it should
    display default view title.
  2. If filter is applied and there is value in URL, title displays field’s KEY, but not it’s VALUE, for example “2” (not the name of the genre).

What am I doing wrong?