rustdoc: Update document title when displaying search results
Fixes #26360.
This commit is contained in:
parent
7a13b93b00
commit
d234b0bb5f
1 changed files with 3 additions and 0 deletions
|
@ -571,6 +571,9 @@
|
|||
return;
|
||||
}
|
||||
|
||||
// Update document title to maintain a meaningful browser history
|
||||
$(document).prop("title", "Results for " + query.query + " - Rust");
|
||||
|
||||
// Because searching is incremental by character, only the most
|
||||
// recent search query is added to the browser history.
|
||||
if (browserSupportsHistoryApi()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue