]> git.lizzy.rs Git - rust.git/commitdiff
Update location from a relative path to absolute
authoravborhanian <avborhanian@gmail.com>
Fri, 7 Jan 2022 09:29:20 +0000 (01:29 -0800)
committerGitHub <noreply@github.com>
Fri, 7 Jan 2022 09:29:20 +0000 (01:29 -0800)
src/doc/not_found.md

index d26fcfc0168d7676138a74ac2ef336b115268b30..f0794fc0be37873976e3b4d8a973226b82084464 100644 (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);
     }
 }