Skip to content

Commit

Permalink
Mark search field as required
Browse files Browse the repository at this point in the history
Fixes users being allowed to search without typing anything, leading to
a blank seach page.
  • Loading branch information
Insprill committed Apr 29, 2024
1 parent 2ffbac9 commit dc4c162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<div class="panel-container">
<div class="search-bar">
<form method="get" action="/search" autocomplete="off">
<input type="text" name="q" autofocus="" placeholder="Enter search query..." dir="auto"/>
<input type="text" required="true" name="q" autofocus="" placeholder="Enter search query..." dir="auto"/>
<button type="submit">
Search
</button>
Expand Down

0 comments on commit dc4c162

Please sign in to comment.