# When slug generation method is encoded, It redirected many times when we open new tab opens in topic

**URL:** <https://meta.discourse.org/t/when-slug-generation-method-is-encoded-it-redirected-many-times-when-we-open-new-tab-opens-in-topic/67247>\
**Category:** Bug\
**Created:** [2017 年8 月 1 日 13:51 UTC](https://meta.discourse.org/t/when-slug-generation-method-is-encoded-it-redirected-many-times-when-we-open-new-tab-opens-in-topic/67247 "2017-08-01T13:51:49Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

作者： ![fantasticfears](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fantasticfears/32/119608_2.png) [@fantasticfears](https://meta.discourse.org/u/fantasticfears)\
发布日期： [2017 年8 月 1 日 19:56 UTC](https://meta.discourse.org/t/when-slug-generation-method-is-encoded-it-redirected-many-times-when-we-open-new-tab-opens-in-topic/67247/5 "2017-08-01T19:56:23Z")

</div>

Did you try `puts @topic_view.topic.slug != params[:slug].strip`

And what’s the `@topic_view.topic.slug.encoding` and `params[:slug].encoding`?

---

_[View the full topic](https://meta.discourse.org/t/when-slug-generation-method-is-encoded-it-redirected-many-times-when-we-open-new-tab-opens-in-topic/67247)._
