|
@@ -41,6 +41,7 @@ BlazeComponent.extendComponent({
|
|
|
this.hasQueryErrors = new ReactiveVar(false);
|
|
|
this.query = new ReactiveVar('');
|
|
|
this.resultsHeading = new ReactiveVar('');
|
|
|
+ this.searchLink = new ReactiveVar(null);
|
|
|
this.queryParams = null;
|
|
|
this.parsingErrors = [];
|
|
|
this.resultsCount = 0;
|
|
@@ -258,6 +259,11 @@ BlazeComponent.extendComponent({
|
|
|
});
|
|
|
},
|
|
|
|
|
|
+ getSearchHref() {
|
|
|
+ const baseUrl = window.location.href.replace(/([?#].*$|\s*$)/, '');
|
|
|
+ return `${baseUrl}?q=${encodeURIComponent(this.query.get())}`;
|
|
|
+ },
|
|
|
+
|
|
|
searchInstructions() {
|
|
|
tags = {
|
|
|
operator_board: TAPi18n.__('operator-board'),
|