Page title from the exposed filter term I have a view that shows all the contents of my site, with an exposed filter, that allows to filter these contents according to different taxonomy terms. 

I would like the taxonomy term chosen via the exposed filter to appear as a page title. 

Example: 


I type in my search form: drupal, 
I arrive on a page with the title "drupal" and presenting all the contents having for term "drupal". 


I tried different options, especially with the contextual filter, but without success. 

For example, i tried this solution (1) or this solution (2), but either I do not get any title (1), or I get many errors that make the site crash (2), of type 


  Warning : Illegal string offset 'value' dans Drupal\views\Plugin\views\area\Text->preQuery() ((...)/core/modules/views/src/Plugin/views/area/Text.php ligne 50)


Help would be much appreciated

Edit:

My views configuration (maybe views can't find the id in the url? The url of my page: : mysite/myviews?tid=term+taxonomy+(ID) )
To use term names in a Contextual filter in Content views you need to add the Relationship to the taxonomy reference field you have in your content. Then you'll be able to add Taxonomy term: Name Contextual filter that will take names as arguments, and not term ID numbers. 

You will be able to override the title for the Name contextual the same way, only use the corresponding token for the taxonomy name. You can look it up under Replacement patterns. 

You can find more details about how to set up the Name contextual here in a section of this answer: Create view with path relative to taxonomy term