Add a title tag to the search results page
This commit is contained in:
parent
bf9c4a7828
commit
cd4f0393a8
|
@ -8,6 +8,10 @@ import { getOwner } from 'discourse-common/lib/get-owner';
|
|||
export default Discourse.Route.extend({
|
||||
queryParams: { q: {}, expanded: false, context_id: {}, context: {}, skip_context: {} },
|
||||
|
||||
titleToken() {
|
||||
return I18n.t('search.results_page');
|
||||
},
|
||||
|
||||
model(params) {
|
||||
const cached = getTransient('lastSearch');
|
||||
var args = { q: params.q };
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
<% content_for :title do %><%= t 'js.search.results_page' %><% end %>
|
|
@ -1294,6 +1294,7 @@ en:
|
|||
no_more_results: "No more results found."
|
||||
searching: "Searching ..."
|
||||
post_format: "#{{post_number}} by {{username}}"
|
||||
results_page: "Search Results"
|
||||
|
||||
context:
|
||||
user: "Search posts by @{{username}}"
|
||||
|
|
Loading…
Reference in New Issue