mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: RSS paths render a 404 for missing topics.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user