Skip to content

Commit

Permalink
Avoid unnecessary instantiation of data object
Browse files Browse the repository at this point in the history
This makes it possible to use with Elasticsearch due to:
elastic/elasticsearch-rails#804
  • Loading branch information
jcoyne committed Jun 26, 2018
1 parent 8b90415 commit fd17809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/concerns/blacklight/catalog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def track
path = uri.query ? "#{uri.path}?#{uri.query}" : uri.path
redirect_to path, status: 303
else
redirect_to blacklight_config.document_model.new(id: params[:id]), status: 303
redirect_to({ action: :show, id: params[:id] }, status: 303)
end
end

Expand Down

0 comments on commit fd17809

Please sign in to comment.