From f3f6891be2cc84d0ca15ba02a3d564b9d53805cc Mon Sep 17 00:00:00 2001 From: avborhanian Date: Fri, 7 Jan 2022 01:29:20 -0800 Subject: [PATCH] Update location from a relative path to absolute --- src/doc/not_found.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/not_found.md b/src/doc/not_found.md index d26fcfc0168d7..f0794fc0be378 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); } }