Remove /tags in slug

Hi,

Sorry for the newbie question but I didn’t find the answer in this forum.
I have the following address for tags filter:
http://localhost:1313/tags/cinema
where I would like to have /tags deleted with only:
http://localhost:1313/cinema

How can I do it ?
Note that my current code is as follows:
{{ range $i := (slice "categories" "tags") }} {{ with ($.Param $i) }} {{ $i | title }}: {{ range $k := . }}<a href="{{ relURL (print "/" $i "/" $k | urlize) }}">{{$k}}</a> {{ end }} {{ end }} {{ end }}

Thank you for your help

Changing URLs related to Taxonomies does not have good support in Hugo, yet.

Related issues in GitHub:

There are workarounds, though:

2 Likes

Thanks for your swift answer.
I will try to understand all this stuff despite my very limited and poor skills in coding.

I think @MunifTanjim means that changing URLs related to Taxonomies does not have good support in Hugo, yet…

1 Like

:joy: damn typo! Thanks @rdwatters :smiley:

1 Like