Skip to content

Commit

Permalink
use request_lang in the collection show_members endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Mar 27, 2023
1 parent c3c5af7 commit ccd5770
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/collections_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def show_members
@collection = get_request_collection
page = params[:page] || '1'
@auto_click = page.to_s.eql?('1')
@page = @collection.explore.members({page: page})
@page = @collection.explore.members({page: page, language: request_lang})
@concepts = @page.collection
if @ontology.nil?
ontology_not_found params[:ontology]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
%div{data:{controller: 'turbo-frame',
'turbo-frame': {
'url-value': "/ajax/classes/list?ontology_id=#{@ontology.acronym}",
'url-value': "/ajax/classes/list?ontology_id=#{@ontology.acronym}&language=#{request_lang}",
'place-holder-value': "Please select a collection to display"
}}}
%div.pb-2
Expand Down

0 comments on commit ccd5770

Please sign in to comment.