Class: Hyrax::SearchState

Inherits:
Blacklight::SearchState
  • Object
show all
Defined in:
lib/hyrax/search_state.rb

Instance Method Summary collapse

Instance Method Details

#url_for_document(doc, _options = {}) ⇒ Object

Override Blacklight so we can use the per-worktype routes

Parameters:

  • doc (#collection?, #model_name)


8
9
10
11
# File 'lib/hyrax/search_state.rb', line 8

def url_for_document(doc, _options = {})
  return [hyrax, doc] if doc.collection?
  [main_app, doc]
end