diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js
index 840f943a597..ff28c4f40bc 100644
--- a/src/librustdoc/html/static/main.js
+++ b/src/librustdoc/html/static/main.js
@@ -1597,7 +1597,7 @@ if (!DOMTokenList.prototype.remove) {
clearTimeout(searchTimeout);
if (search_input.value.length === 0) {
if (browserSupportsHistoryApi()) {
- history.replaceState("", "std - Rust", "?search=");
+ history.replaceState("", window.currentCrate + " - Rust", "?search=");
}
if (hasClass(main, "content")) {
removeClass(main, "hidden");