mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
BUGFIX: downcase slugs
This commit is contained in:
parent
c87ed6b02a
commit
39b5539ba8
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ class TopicsController < ApplicationController
|
|||
begin
|
||||
@topic_view = TopicView.new(params[:id] || params[:topic_id], current_user, opts)
|
||||
rescue Discourse::NotFound
|
||||
topic = Topic.find_by(slug: params[:id]) if params[:id]
|
||||
topic = Topic.find_by(slug: params[:id].downcase) if params[:id]
|
||||
raise Discourse::NotFound unless topic
|
||||
return redirect_to(topic.relative_url)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue