Skip to content

Rework blob endpoint to match the standard convention #24623

Closed
@shalak

Description

@shalak

Feature Description

This is a follow up for #4048 and #5334

The above introduced following blob support via URL:

https://gitea.mydomain.com/username/reponame/src/commit/<SHA>/path/to/file.c#L49

While the standard is:

https://gitea.mydomain.com/username/reponame/blob/<SHA>/path/to/file.c#L49

Basically simple path rewrite from /:user/:repo/blob/ to /:user/:repo/src/commit/ would do the trick. That way, plugins like copy-git-link would work out of the box.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/featureCompletely new functionality. Can only be merged if feature freeze is not active.type/proposalThe new feature has not been accepted yet but needs to be discussed first.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions