Skip to content

Commit 12f610d

Browse files
Merge #1371
1371: Fix relevance sorting on search r=ashleygwilliams To sort by relevence, the backend expects the sort string to either be not present, or set to the value "relevance". Right now the backend is either sending the string `null` or an empty string. Neither of these do what we want. Fixes #1370
2 parents 9da11a4 + 6dbb2a6 commit 12f610d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

app/controllers/search.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export default Controller.extend(PaginationMixin, {
1313
q: alias('search.q'),
1414
page: '1',
1515
per_page: 10,
16-
sort: null,
1716

1817
model: readOnly('dataTask.lastSuccessful.value'),
1918

app/templates/search.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
{{#rl-dropdown tagName="ul" class="dropdown" closeOnChildClick="a:link"}}
4040
<li>
41-
{{#link-to (query-params page=1 sort="")}}
41+
{{#link-to (query-params page=1 sort="relevance")}}
4242
Relevance
4343
{{/link-to}}
4444
</li>

0 commit comments

Comments
 (0)