Skip to content

Commit

Permalink
Fix in Chrome for #35.
Browse files Browse the repository at this point in the history
  • Loading branch information
anjackson committed Mar 30, 2023
1 parent a92fe34 commit 3d5cabf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions layouts/_default/homepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,11 @@ <h1 class="main-heading-2-redesign padding-bottom-20">{{ i18n "searchTheUkWebArc
// Allow missing prefix as we are enforcing a dot.
if( isValidHttpUrl(value) || isValidHttpUrl('https://' + value) ) {
searchType.value = 'url';
// Change action here too, as Chrome sometimes doesn't change it in the formdata event:
searchForm.action = urlSearchUrl;
} else {
searchType.value = 'text';
searchForm.action = textSearchUrl;
}
}

Expand Down

0 comments on commit 3d5cabf

Please sign in to comment.