Skip to content

[rustdoc] Remove query component from URL by pressing ESC #81330

@tesuji

Description

@tesuji

mdbook v4.6+ has a feature that pressing ESC removes query components from URLs (for example ?highlight=...).
The feature was implemented in rust-lang/mdBook#1427.

It would be nice if rustdoc offers the same kind of that feature.

This is, for example, an URL that contains query components in rustdoc: https://doc.rust-lang.org/nightly/std/time/struct.Duration.html?search=asdfasdf.

What's the benefit of this feature?

When users share URLs to an API, they don't have to remove the query manually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-uiArea: Rustdoc UI (generated HTML)C-feature-requestCategory: A feature request, i.e: not implemented / a PR.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