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 27, 2018
1 parent ac2ad4a commit 83e7d42
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 83e7d42

Please sign in to comment.