Thanks to xet7 ! Related https://github.com/wekan/wekan/pull/3492
@@ -34,7 +34,7 @@ template(name="globalSearch")
else
h1
= resultsHeading.get
- a.fa.fa-link(title="{{_ 'link-to-search' }}" href="{{ getSearchHref }}")
+ a.fa.fa-link(title="{{_ 'link-to-search' }}" href="")
each card in results.get
+resultCard(card)
table.global-search-footer
@@ -480,11 +480,6 @@ BlazeComponent.extendComponent({
});
},
- getSearchHref() {
- const baseUrl = window.location.href.replace(/([?#].*$|\s*$)/, '');
- return `${baseUrl}?q=${encodeURIComponent(this.query.get())}`;
- },
-
searchInstructions() {
tags = {
operator_board: TAPi18n.__('operator-board'),