Rollup merge of #92642 - avborhanian:master, r=Dylan-DPC

Update search location from a relative path to absolute

This should address issue #90311.
This commit is contained in:
Matthias Krüger 2022-02-28 12:57:45 +01:00 committed by GitHub
commit 354e014b84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}