# כמה קטגוריות שבורות: "Load cannot follow more than 20 redirections"

**URL:** https://meta.discourse.org/t/some-categories-are-broken-load-cannot-follow-more-than-20-redirections/177037
**Category:** Bug
**Created:** [23 בינואר,‏ 2021,‏ 2:59pm UTC](https://meta.discourse.org/t/some-categories-are-broken-load-cannot-follow-more-than-20-redirections/177037 "2021-01-23T14:59:24Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![chrispanag](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrispanag/32/105853_2.png) [@chrispanag](https://meta.discourse.org/u/chrispanag)
#### Post date: [23 בינואר,‏ 2021,‏ 2:59pm UTC](https://meta.discourse.org/t/some-categories-are-broken-load-cannot-follow-more-than-20-redirections/177037/1 "2021-01-23T14:59:24Z")

</div>

After we upgraded to 2.7.0beta2, navigating to some categories is broken. When we try to access a category we get the following errors in the console:

 ![Screenshot 2021-01-23 at 15.47.39](https://global.discourse-cdn.com/meta/original/3X/b/6/b6030458224249156101ab6c93d940dfd79a5d69.png)

You can try for yourself using the following links:

> [Ρεμπέτικο γλωσσάρι - Ρεμπέτικο Φόρουμ](https://rembetiko.gr/c/-/77/none)  
> [Μαζώξεις - Ρεμπέτικο Φόρουμ](https://rembetiko.gr/c/-/159)  
> [Ρεμπέτικο γλωσσάρι - Ρεμπέτικο Φόρουμ](https://rembetiko.gr/c/%CF%81%CE%B5%CE%BC%CF%80%CE%AD%CF%84%CE%B9%CE%BA%CE%BF-%CE%B3%CE%BB%CF%89%CF%83%CF%83%CE%AC%CF%81%CE%B9/77)

Interestingly urls for some different categories work:

> [Επικαιρότητα - Ρεμπέτικο Φόρουμ](https://rembetiko.gr/c/%CE%B5%CF%80%CE%B9%CE%BA%CE%B1%CE%B9%CF%81%CF%8C%CF%84%CE%B7%CF%84%CE%B1/7)  
> [Επικαιρότητα - Ρεμπέτικο Φόρουμ](https://rembetiko.gr/c/-/7)  
> [Ανακοινώσεις - Ρεμπέτικο Φόρουμ](https://rembetiko.gr/c/%CE%B5%CF%80%CE%B9%CE%BA%CE%B1%CE%B9%CF%81%CF%8C%CF%84%CE%B7%CF%84%CE%B1/%CE%B1%CE%BD%CE%B1%CE%BA%CE%BF%CE%B9%CE%BD%CF%8E%CF%83%CE%B5%CE%B9%CF%82/23)  
> [Μουσική θεωρία - Ρεμπέτικο Φόρουμ](https://rembetiko.gr/c/%CE%BC%CE%BF%CF%85%CF%83%CE%B9%CE%BA%CE%AE-%CE%B8%CE%B5%CF%89%CF%81%CE%AF%CE%B1/57)

Our forum is served behind cloudflare and we have setted an origin url ([https://origin.rembetiko.gr](https://origin.rembetiko.gr)) for message bus.

We disabled Cloudlfare proxying, but unfortunately the problem persists. For now, Cloudflare proxying is still disabled.

Thanks a lot in advance 🙂 The work that you do here is wonderful.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [23 בינואר,‏ 2021,‏ 4:13pm UTC](https://meta.discourse.org/t/some-categories-are-broken-load-cannot-follow-more-than-20-redirections/177037/2 "2021-01-23T16:13:45Z")

</div>

We recently merged a change to fix case sensitive slugs in order to fix a different bug. That also had to deal with categories with duplicate slugs and it may have triggered this 🤔.

If you open the category 77 and set the slug as `nil` does it fix it ?

---

<div class="post-metadata">

### Author: ![chrispanag](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrispanag/32/105853_2.png) [@chrispanag](https://meta.discourse.org/u/chrispanag)
#### Post date: [23 בינואר,‏ 2021,‏ 5:55pm UTC](https://meta.discourse.org/t/some-categories-are-broken-load-cannot-follow-more-than-20-redirections/177037/3 "2021-01-23T17:55:31Z")

</div>

You mean like that?

`https://rembetiko.gr/c/nil/77`

No it doesn’t work 😕

---

<div class="post-metadata">

### Author: ![chrispanag](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrispanag/32/105853_2.png) [@chrispanag](https://meta.discourse.org/u/chrispanag)
#### Post date: [24 בינואר,‏ 2021,‏ 3:04pm UTC](https://meta.discourse.org/t/some-categories-are-broken-load-cannot-follow-more-than-20-redirections/177037/4 "2021-01-24T15:04:04Z")

</div>

Sorry for bumping this - but is there a possible workaround for this? Those categories are still inaccessible…

Thanks again 🙂

---

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [24 בינואר,‏ 2021,‏ 7:20pm UTC](https://meta.discourse.org/t/some-categories-are-broken-load-cannot-follow-more-than-20-redirections/177037/5 "2021-01-24T19:20:09Z")

</div>

I’d try to (temporarily) change the slug:

> [@Newly added non-ASCII category page does not load](https://meta.discourse.org/t/newly-added-non-ascii-category-page-does-not-load/158971/9):
>
> To fix the issue on my site, I went to the Rails console and ran:
> 
> ```plaintext
> c = Category.find_by(name: 'exemple de catégorie')
> c.update(slug: 'exemple-de-categorie')
> 
> ```

It might also be a plugin in use in these categories and not in the ones that are working 🤔

---

<div class="post-metadata">

### Author: ![chrispanag](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chrispanag/32/105853_2.png) [@chrispanag](https://meta.discourse.org/u/chrispanag)
#### Post date: [24 בינואר,‏ 2021,‏ 8:27pm UTC](https://meta.discourse.org/t/some-categories-are-broken-load-cannot-follow-more-than-20-redirections/177037/6 "2021-01-24T20:27:57Z")

</div>

The only non-standard code that runs on some of these categories is the [discourse-category-sidebars](https://meta.discourse.org/t/discourse-category-sidebars/107561) theme component.

This is the plugin list:

 ![Screenshot 2021-01-24 at 21.20.32](https://global.discourse-cdn.com/meta/original/3X/2/a/2a59f675a8c8fde2596dd1b33d2b86fd703dd9c5.png)

The only non-standard plugin (except for whos-online) is the [SealabsOnebox](https://github.com/rembetikogr/rebetiko-sealabs-onebox) which just produces onebox previews for a website that doesn’t support oEmbed - I can’t think that it can interfere with category loading (especially specific category loading).

> [@Benjamin\_D](#):
>
> I’d try to (temporarily) change the slug:

Thanks for the tip, I will to try update the slugs and I will update this topic with the results. 🙂

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [25 בינואר,‏ 2021,‏ 12:38am UTC](https://meta.discourse.org/t/some-categories-are-broken-load-cannot-follow-more-than-20-redirections/177037/7 "2021-01-25T00:38:51Z")

</div>

Yes, that the exact thing I meant with setting the slugs to nil @chrispanag 🤔

```ruby
c = Category.find_by(id: 77)
c.update(slug: nil)

```

Check if the auto slug generation will fix it.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [8 במרץ,‏ 2021,‏ 3:17am UTC](https://meta.discourse.org/t/some-categories-are-broken-load-cannot-follow-more-than-20-redirections/177037/8 "2021-03-08T03:17:27Z")

</div>


