Skip to content

GitLab raw URLs are broken with recent GitLab installs #670

@rgl

Description

@rgl

The current GitLab generates raw URLs alike:

https://gitlab.example.com/raw/example/example-dotnet-source-link/538b7a2b0d086146a6534bfe6f98a379191ea529/ExampleApplication/Program.cs

But in GitLab 13.5 (at least; didn't test with earlier version) they are broken. GitLab now needs this:

https://gitlab.example.com/example/example-dotnet-source-link/-/raw/538b7a2b0d086146a6534bfe6f98a379191ea529/ExampleApplication/Program.cs

I'm not really sure how to deal with older/newer URLs... would it be enough to submit a PR for changing the URL by changing the code at

=> UriUtilities.Combine(UriUtilities.Combine(contentUri.ToString(), relativeUrl), "raw/" + revisionId + "/*");
?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions