Skip to content

Commit

Permalink
use request_lang in the concepts sorted_by_date_url
Browse files Browse the repository at this point in the history
syphax-bouazzouni committed Mar 27, 2023
1 parent 9643b2d commit fec0e0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/concepts_helper.rb
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@ def concept_date(concept)
end

def sorted_by_date_url(page = 1, last_concept = nil)
out = "/ajax/classes/date_sorted_list?ontology=#{@ontology.acronym}&page=#{page}"
out = "/ajax/classes/date_sorted_list?ontology=#{@ontology.acronym}&page=#{page}&language=#{request_lang}"
out += "&last_date=#{concept_date(last_concept)}" if last_concept
out
end

0 comments on commit fec0e0d

Please sign in to comment.