Skip to content

Commit

Permalink
Fixed a bug in search and maps
Browse files Browse the repository at this point in the history
  • Loading branch information
ManeraKai committed Mar 12, 2022
1 parent 1deb226 commit 6e8f9b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/assets/javascripts/helpers/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,9 @@ function initWhoogleCookies() {
function redirect(url) {
if (disable) return;
if (!targets.some((rx) => rx.test(url.href))) return;
if (url.searchParams.has('tbm')) return;

if (!url.searchParams.has('q') && url.pathname != '/') return;

let randomInstance;
let path;
Expand Down

0 comments on commit 6e8f9b2

Please sign in to comment.