about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-02-28 12:57:45 +0100
committerGitHub <noreply@github.com>2022-02-28 12:57:45 +0100
commit354e014b84ce2c39b88049d83ae5b9dae73b1047 (patch)
tree109d3a95d529bf4dbd6b516f8268e49e6ed10fd2
parent770ee32b34a5b7e46185c7104d42ee1c51fe4257 (diff)
parentf3f6891be2cc84d0ca15ba02a3d564b9d53805cc (diff)
downloadrust-354e014b84ce2c39b88049d83ae5b9dae73b1047.tar.gz
rust-354e014b84ce2c39b88049d83ae5b9dae73b1047.zip
Rollup merge of #92642 - avborhanian:master, r=Dylan-DPC
Update search location from a relative path to absolute

This should address issue #90311.
-rw-r--r--src/doc/not_found.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/not_found.md b/src/doc/not_found.md
index d26fcfc0168..f0794fc0be3 100644
--- a/src/doc/not_found.md
+++ b/src/doc/not_found.md
@@ -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);
     }
 }