mirror of
https://github.com/discourse/discourse.git
synced 2025-02-02 11:39:44 +08:00
FIX: RSS paths render a 404 for missing topics.
This commit is contained in:
parent
1056b94b56
commit
5217602ec3
|
@ -284,7 +284,7 @@ class ApplicationController < ActionController::Base
|
|||
@slug = params[:slug].class == String ? params[:slug] : ''
|
||||
@slug = (params[:id].class == String ? params[:id] : '') if @slug.blank?
|
||||
@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
|
||||
|
|
Loading…
Reference in New Issue
Block a user