Skip to content

API and GitHub LICENSE links inconsistency #1525

Open
@alex-bacart

Description

@alex-bacart

Description

There's an inconsistency in GitHub website and API responses.

For example you can take this exact repository. On readme page you have a "MIT license" link with address https://github.com/github/rest-api-description/blob/main/LICENSE.md

But API response returns an invalid address for license link.

curl 'https://api.github.com/repos/github/rest-api-description/readme' \
--header 'Accept: application/vnd.github.html'

Expected link address

https://github.com/github/rest-api-description/blob/main/LICENSE.md

Actual link address

LICENSE.md

Issue

This relative link gives 404 pages in any of the following relations:

More affected repositories

Every repository having license links in format LICENSE and ./LICENSE is affected. Just a few of them:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions