Thank you for your contribution, but with your suggestion I do not get the desired result. First, for the code you propose to work, the variable ‘new_base_url’ must be declared (as in Quark Theme) with the following lines:
{% set new_base_url = blog.url == '/'? '': blog.url%}
Based on this scenario, I get the following results:
If I am on the home page or other and click on Tag1, Tag2 or others (in the Sidebar), the path shown in the browser is:
http://localhost/tag:tag1 or
http://localhost/tag:tag2 or
http://localhost/tag:tag3
showing therefore an error, since that is not the address of the website.
In the end I have achieved what I want, partially, only with the blog collection, in this way.
First I define the variable with the absolute path to the site and the blog path:
{% set new_base_url = base_url_absolute ~ site.blog.route%}
And then I include it with:
{% include 'partials / taxonomylist.html.twig' with {'base_url': new_base_url, 'taxonomy': 'tag'}%}
But this only works for the blog collection.
How do I get it to show me all the tags of all the pages of the site?
Hi @anon76427325
Sorry to have mixed two issues into one. Indeed the last question is for another post. Regarding the original question, the error is solved by passing parameters to the call to the taxonomylist plugin.
{% include 'partials / taxonomylist.html.twig' with {'base_url': new_base_url, 'taxonomy': 'tag'}%}
previously defining the variable ‘new_base_url’,
{% set new_base_url = base_url_absolute ~ site.blog.route%}