Skip to content

Go to latest version breaks for /src/ when item was renamed #513

Closed
@jyn514

Description

@jyn514

I noticed this while investigating #357: any time you click 'Go To Latest' while viewing source code, it redirects to https://docs.rs/:crate/:version/src/:crate/?search=rs. This is clearly not desired behavior (it gives a 404).

Don't have time to debug right now but the relevant code is

fn path_for_version(req_path: &[&str], target_name: &str, conn: &Connection) -> String {
.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyEffort: Should be easy to implement and would make a good first PRmentorThis has instructions for getting started

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions