Skip to content

Commit

Permalink
Rollup merge of #92642 - avborhanian:master, r=Dylan-DPC
Browse files Browse the repository at this point in the history
Update search location from a relative path to absolute

This should address issue #90311.
  • Loading branch information
matthiaskrgr authored Feb 28, 2022
2 parents 770ee32 + f3f6891 commit 354e014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/not_found.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function on_submit(event) {
if (form['from'].value === 'duckduckgo') {
document.location.href = form.action + '?q=' + encodeURIComponent(q + ' site:doc.rust-lang.org');
} else if (form['from'].value === 'library') {
document.location.href = 'std/index.html?search=' + encodeURIComponent(q);
document.location.href = '/std/index.html?search=' + encodeURIComponent(q);
}
}

Expand Down

0 comments on commit 354e014

Please sign in to comment.