Taxonomy plugin: links of tag cloud point to homepage

Hi guys,

I use the pinpress theme for my site (http://demo.getgrav.org/pinpress-skeleton/) and have the taxonomy plugin enabled.

When I read my blog article and click on a tag it points to the correct URL (mysite.com/blog/tag:example).
ALL links that are generated in the tagcloud look like this: mysite.com/tag:example. The blog as subfolder is missing.

What can I do to get the right links?

user/config/plugins/taxonomylist.yaml
enabled: true
route: /blog

user/themes/pinpress/templates/partials/sitebar.html.twig
{% if config.plugins.taxonomylist.enabled %}

Tags

{% include 'partials/taxonomylist.html.twig' with {'base_url':new_base_url, 'taxonomy':'tag'} %}
{% endif %}

Thanks!

I found a solution:

IN: /user/themes/pinpress/templates/partials/taxonomylist.html.twig
I just added “/blog”

Now the file looks like this:
{% set taxlist = taxonomylist.get() %}

{% if taxlist %}

    {% for tax,value in taxlist[taxonomy]|slice(0, 5) %}
  • {% set active = uri.param(taxonomy) == tax ? 'active' : '' %} {{ tax }}
  • {% endfor %}
{% endif %}