# Follow/nofollow on categories

**URL:** <https://forum.litium.com/t/follow-nofollow-on-categories/2040>\
**Category:** Questions\
**Tags:** accelerator, litium-7\
**Created:** [May 4, 2021, 7:17am UTC](https://forum.litium.com/t/follow-nofollow-on-categories/2040 "2021-05-04T07:17:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ericsj11](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/ericsj11/32/899_2.png) [@Ericsj11](https://forum.litium.com/u/Ericsj11)\
**Post date:** [May 4, 2021, 7:17am UTC](https://forum.litium.com/t/follow-nofollow-on-categories/2040/1 "2021-05-04T07:17:10Z")

</div>

In Litium.Web.MetaServiceImpl.cs in the accelerator in Litium 7.6.2, the robot meta tag for **categories** comes from the **startpage**. Is this a feature or a bug?

So if startpage has noindex/nofollow, all categories will be the same.

Some of the strange(?) decompiled code

```
    bool flag = this._fieldTemplateService.Get<PageFieldTemplate>(page.FieldTemplateSystemId).IndexThePage && page.Fields.GetValue<bool>("_indexThePage");
    if (category != null)
    {
      robotsSettings.DefaultFollow = page.Fields.GetValue<bool>("_followLinks");
      robotsSettings.DefaultIndex = flag;
    }
    else
    {
      robotsSettings.DefaultFollow = page.Fields.GetValue<bool>("_followLinks");
      robotsSettings.DefaultIndex = flag;
    }

```

Litium version: 7.6.2

---

<div class="post-metadata">

**Author:** ![NilsN](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/nilsn/32/302_2.png) [@NilsN](https://forum.litium.com/u/NilsN)\
**Post date:** [May 5, 2021, 7:37am UTC](https://forum.litium.com/t/follow-nofollow-on-categories/2040/2 "2021-05-05T07:37:57Z")

</div>

Categories doesn’t have any pages themselves and are considered as the start page, so that’s why it inherits its settings. At this time the categories themselves doesn’t support individual settings for this.

Maybe you could add the setting as a field and then decorate the service?

---

<div class="post-metadata">

**Author:** ![Ericsj11](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/ericsj11/32/899_2.png) [@Ericsj11](https://forum.litium.com/u/Ericsj11)\
**Post date:** [May 5, 2021, 7:45am UTC](https://forum.litium.com/t/follow-nofollow-on-categories/2040/3 "2021-05-05T07:45:31Z")

</div>

We had noFollow in the startpage in the test environment so it was some confusion when going live. But changing the startpage sovled our problems.

But I just wanted to check if this was a bug or something that was planned. Because when i looked at the decompiled code, it looks a bit strange. That IF statement is not needed. So it could have been a misstake, and something else was suppose to happen 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [June 2, 2021, 7:45am UTC](https://forum.litium.com/t/follow-nofollow-on-categories/2040/4 "2021-06-02T07:45:55Z")

</div>

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