# 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:** [8월 1, 2017, 1: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:** 6

<div class="post-metadata">

### Author: ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### Post date: [8월 1, 2017, 10:57오후 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/6 "2017-08-01T22:57:41Z")

</div>

$20 says `params[:slug].encoding` is `ASCII-8BIT`. I think we need to fix this everywhere, as per [this topic](https://meta.discourse.org/t/automatic-encoding-of-parsed-url-params/67232).

---

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