# 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:** 7

<div class="post-metadata">

作者： ![Alavi1412](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alavi1412/32/67721_2.png) [@Alavi1412](https://meta.discourse.org/u/Alavi1412)\
发布日期： [2017 年8 月 3 日 06:29 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/7 "2017-08-03T06:29:41Z")

</div>

> [@fantasticfears](#):
>
> puts @topic\_view.topic.slug != params[:slug].strip

yes and the problem still exist. `.strip` method won’t solve it.

---

_[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)._
