Skip to content

Commit

Permalink
fix: correct search bar action
Browse files Browse the repository at this point in the history
Fixed #602
  • Loading branch information
razonyang committed Jul 8, 2022
1 parent 8445b4b commit b7e2d7a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions layouts/partials/header/search-bar.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{{- if .Site.Params.searchBar -}}
{{- $url := absURL "/search" -}}
{{- if gt (len $.Site.Home.AllTranslations) 1 -}}
{{- $url = absLangURL "/search" -}}
{{- end -}}
{{- $page := .Site.GetPage "/search" }}
<hr class="d-lg-none">
<form class="search-bar ms-auto my-1" action="{{ $url }}" novalidate>
<form class="search-bar ms-auto my-1" action="{{ with $page }}{{ .Permalink }}{{ end }}" novalidate>
<div class="input-group input-group-sm align-items-center">
<span class="btn btn-search disabled position-absolute left-0 border-0">
<i class="fas fa-fw fa-search fa-lg"></i>
Expand Down

0 comments on commit b7e2d7a

Please sign in to comment.