Skip to content

Commit

Permalink
Fixes language-specific search page issue (#2087)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Abraham <[email protected]>
  • Loading branch information
cjyabraham committed Mar 24, 2024
1 parent 314e744 commit 4dd2233
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions assets/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ limitations under the License.
}

var query = $(this).val();
var searchPage = "{{ "search/" | relLangURL }}?q=" + query;
console.log(searchPage);
var searchPage = $(this).data('search-page') + "?q=" + query;
document.location = searchPage;

return false;
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/search-input.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="add-search-icon">
<input type="search" class="form-control td-search-input" placeholder="{{ T "ui_search" }}" aria-label="{{ T "ui_search" }}" autocomplete="off">
<input type="search" data-search-page="{{ "search/" | relLangURL }}" class="form-control td-search-input" placeholder="{{ T "ui_search" }}" aria-label="{{ T "ui_search" }}" autocomplete="off">
<svg xmlns="http://www.w3.org/2000/svg" role="img" viewBox="0.88 0.63 32.17 30.24"><g opacity=".945"><path stroke="#000" stroke-width="4.392" d="M13.746 23.279c5.536 0 10.024-4.432 10.024-9.9 0-5.466-4.488-9.898-10.024-9.898-5.536 0-10.024 4.432-10.024 9.899 0 5.467 4.488 9.899 10.024 9.899zm6.56-5.069l10.652 10.52" fill="transparent" /></g></svg>
</div>

0 comments on commit 4dd2233

Please sign in to comment.