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

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

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