From: avborhanian Date: Fri, 7 Jan 2022 09:29:20 +0000 (-0800) Subject: Update location from a relative path to absolute X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=f3f6891be2cc84d0ca15ba02a3d564b9d53805cc;p=rust.git Update location from a relative path to absolute --- 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); } }