app/controllers/catalog_controller.rb
# on request for facet/something, where 'something' is not a valid facet,
# just return a 404 -- in Blacklight 5.6.0, otherwise we get a fatal unexpected
# exception, cluttering up our error logs.
on request for facet/something, where 'something' is not a valid facet,
just return a 404 -- in Blacklight 5.6.0, otherwise we get a fatal unexpected
exception, cluttering up our error logs.
on request for facet / something where ' something ' is not a valid facet just return a 404 -- in Blacklight 5 . 6 . 0 otherwise we get a fatal unexpected exception cluttering up our error logs .
def avoid_nonexisting_facet_drilldown
    facet = params[:id]
    unless blacklight_config.facet_fields.keys.include? facet
      render :status => 404, :text => "No such facet: #{ActionController::Base.helpers.sanitize facet}"
    end
  end
def avoid_nonexisting_facet_drilldown facet = params [ :id ] unless blacklight_config . facet_fields . keys . include? facet render :status => 404 , :text => "No such facet: #{ActionController::Base.helpers.sanitize facet}" end end
on request for facet/something, where 'something' is not a valid facet,
just return a 404 -- in Blacklight 5.6.0, otherwise we get a fatal unexpected
exception, cluttering up our error logs.
on request for facet / something where ' something ' is not a valid facet just return a 404 -- in Blacklight 5 . 6 . 0 otherwise we get a fatal unexpected exception cluttering up our error logs .