Skip to content

Commit

Permalink
decode q param, when entering it in search box (#1037)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvgenuchten authored Oct 31, 2024
1 parent c532be3 commit 9165e37
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pycsw/ogc/api/templates/items.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,11 @@
<div class="col-md-4">
<form action="{{ nav_links.self.split('?')[0] }}" method="GET">
<div class="input-group mb-3">
<input type="text" class="form-control" name="q" placeholder="Search" value="{{ attrs['q'] }}">
<input class="btn btn-outline-secondary" type="submit" value="Search"></input>
<input type="text" class="form-control" name="q" placeholder="Search" id="tbq" value="">
<script>
$('#tbq').val(decodeURIComponent("{{ attrs['q'].replace('+',' ') }}"))
</script>
<input class="btn btn-outline-secondary" type="submit" value="Search"></input>
</div>
</form>
</div>
Expand Down

0 comments on commit 9165e37

Please sign in to comment.