mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FIX: RSS paths render a 404 for missing topics.
This commit is contained in:
parent
1056b94b56
commit
5217602ec3
1 changed files with 1 additions and 1 deletions
|
@ -284,7 +284,7 @@ class ApplicationController < ActionController::Base
|
||||||
@slug = params[:slug].class == String ? params[:slug] : ''
|
@slug = params[:slug].class == String ? params[:slug] : ''
|
||||||
@slug = (params[:id].class == String ? params[:id] : '') if @slug.blank?
|
@slug = (params[:id].class == String ? params[:id] : '') if @slug.blank?
|
||||||
@slug.gsub!('-',' ')
|
@slug.gsub!('-',' ')
|
||||||
render status: status, layout: 'no_js', template: '/exceptions/not_found'
|
render status: status, layout: 'no_js', formats: [:html], template: '/exceptions/not_found'
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue