# Tag links do not work in 0.92

**URL:** <https://discourse.gohugo.io/t/tag-links-do-not-work-in-0-92/37042>\
**Category:** support\
**Created:** [February 7, 2022, 10:46pm UTC](https://discourse.gohugo.io/t/tag-links-do-not-work-in-0-92/37042 "2022-02-07T22:46:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![GAZ082](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/gaz082/32/3508_2.png) [@GAZ082](https://discourse.gohugo.io/u/GAZ082)\
**Post date:** [February 7, 2022, 10:46pm UTC](https://discourse.gohugo.io/t/tag-links-do-not-work-in-0-92/37042/1 "2022-02-07T22:46:08Z")

</div>

So, since I upgraded from 0.5x to 0.92 my links to tags that filter out posts do not work, ie:

`http://localhost:1313/tags/tools/`

Still shows all posts.

This is the code I use to generate the URL:

```auto
<div class="tags">
  <i name="hint" class="fas fa-tags"></i>
  {{ with .Params.tags }}
  {{ range . }}
  {{ $href := print (absURL "tags/") (urlize .) }}
  <a href="{{ $href }}">#{{ . }}</a><span class="space"></span>
  {{ end }}
  {{ end }}
</div>

```

The links are properly generated, but again, using them has no effect, all posts are displayed.

My config:

```auto
{
  "baseURL": "https://xx.xx/",
  "languageCode": "en-us",
  "title": "xx",
  "enableInlineShortcodes": true,
  "googleAnalytics": "UA-x-1",
  "summaryLength": 20,
  "paginate": 4,
  "permalinks": {
    "post": "/:slug/",
    "fixed": "/:slug/"
  },
  "params": {
    "author": "Gabriel",
    "dateFormat": "2006-01-02",
    "twitterURL": "xx",
    "twitterTXT": "@xx",
    "subTitle": "I'm Gabriel"
  },
  "menu": {
    "main": [
      {
        "name": "Home",
        "url": "/",
        "weight": 1
      },
      {
        "name": "About Me",
        "url": "/about-me",
        "weight": 2
      }
    ]
  }
}

```

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [February 7, 2022, 10:52pm UTC](https://discourse.gohugo.io/t/tag-links-do-not-work-in-0-92/37042/2 "2022-02-07T22:52:20Z")

</div>

Which template is being used to render your term pages?  
What is the range statement within that template?

---

<div class="post-metadata">

**Author:** ![GAZ082](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/gaz082/32/3508_2.png) [@GAZ082](https://discourse.gohugo.io/u/GAZ082)\
**Post date:** [February 7, 2022, 11:18pm UTC](https://discourse.gohugo.io/t/tag-links-do-not-work-in-0-92/37042/3 "2022-02-07T23:18:56Z")

</div>

Hey, My own template.

Check in this part of the code I shared:

{ with .Params.tags }}  
{{ range . }

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [February 7, 2022, 11:22pm UTC](https://discourse.gohugo.io/t/tag-links-do-not-work-in-0-92/37042/4 "2022-02-07T23:22:00Z")

</div>

Yeah, that doesn’t help. What _would_ help is seeing your entire project.

See [https://discourse.gohugo.io/t/requesting-help/9132](https://discourse.gohugo.io/t/requesting-help/9132).

> Let us see your code
> 
> Include a **link to the source code repository** of your project, because we really need the _context_ of seeing your templates and partials to be able to help you. It is trivial to do a quick `git clone` on your repo, then run `hugo server` in your project, to help you out. On the other hand, recreating your code from screenshots, or sort of guessing at it, is not.
> 
> If you can’t share your repository for whatever reason, consider creating a dummy repo that you _can_ share, which reproduces the problem you’re experiencing.

---

<div class="post-metadata">

**Author:** ![GAZ082](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/gaz082/32/3508_2.png) [@GAZ082](https://discourse.gohugo.io/u/GAZ082)\
**Post date:** [February 10, 2022, 2:48am UTC](https://discourse.gohugo.io/t/tag-links-do-not-work-in-0-92/37042/5 "2022-02-10T02:48:31Z")

</div>

Here Joe: [https://github.com/GAZ082/faketheme](https://github.com/GAZ082/faketheme)

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [February 10, 2022, 2:55am UTC](https://discourse.gohugo.io/t/tag-links-do-not-work-in-0-92/37042/6 "2022-02-10T02:55:40Z")

</div>

You have one template for listing pages: `layouts/_default/list.html`

That template iterates through:

```auto
where .Site.RegularPages.ByDate.Reverse "Section" "post"`

```

So you are getting the same results regardless of whether you are viewing a section, taxonomy, or term page.

Create some new layouts:

```nohighlight
layouts/
├── _default/
    ├── baseof.html
    ├── list.html
    ├── single.html
    ├── taxonomy.html <-- new
    └── terms.html <-- new

```

And in the new ones, just iterate over `.Pages`

---

<div class="post-metadata">

**Author:** ![GAZ082](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/gaz082/32/3508_2.png) [@GAZ082](https://discourse.gohugo.io/u/GAZ082)\
**Post date:** [February 11, 2022, 1:09pm UTC](https://discourse.gohugo.io/t/tag-links-do-not-work-in-0-92/37042/7 "2022-02-11T13:09:29Z")

</div>

Thanks Joe! Creating a Taxonomy fixed the issue (for reference, made just like a list.html and paginated through .Pages).

One last question, when are terms used?

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [February 11, 2022, 1:17pm UTC](https://discourse.gohugo.io/t/tag-links-do-not-work-in-0-92/37042/8 "2022-02-11T13:17:23Z")

</div>

A taxonomy template list the terms associated with a given taxonomy.  
A terms template lists the pages associated with a particular term in a given taxonomy.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [February 13, 2022, 1:18pm UTC](https://discourse.gohugo.io/t/tag-links-do-not-work-in-0-92/37042/9 "2022-02-13T13:18:17Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
