Skip to content

Rustdoc search fails when navigating directly to search url: crateSearchDropDown is null #82986

Closed
@Darksonn

Description

@Darksonn

Navigating directly to the following url:

https://docs.rs/tokio/1.3.0/tokio/index.html?search=Sleep

will fail to show any results and emit the following Javascript error:

Uncaught TypeError: crateSearchDropDown is null
    setupSearchLoader https://docs.rs/main-20210308-1.52.0-nightly-8f349be27.js:8
    <anonymous> https://docs.rs/main-20210308-1.52.0-nightly-8f349be27.js:8
    <anonymous> https://docs.rs/main-20210308-1.52.0-nightly-8f349be27.js:8
main-20210308-1.52.0-nightly-8f349be27.js:8:1189
    setupSearchLoader https://docs.rs/main-20210308-1.52.0-nightly-8f349be27.js:8
    <anonymous> https://docs.rs/main-20210308-1.52.0-nightly-8f349be27.js:8
    <anonymous> https://docs.rs/main-20210308-1.52.0-nightly-8f349be27.js:8

This is using firefox.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions