Skip to content

The subdirectory path issue in Gitlab API URL #90

Open
@puff-tw

Description

@puff-tw

I noticed a 404 error because the Extension was using an incorrect API URL. This is because my Gitlab installation is located in a subdirectory, like this: https://SITE_DOMAIN/gitlab/.

The incorrect URL was:
https://SITE_DOMAIN/api/v4/projects/123/repository/tree?per_page=10000&ref=master

The correct URL is:
https://SITE_DOMAIN/gitlab/api/v4/projects/123/repository/tree?per_page=10000&ref=master

Since Gitlab is installed in a subdirectory, the correct URL needs to include the subdirectory path (/gitlab/) before the api endpoint.

Is it possible to configure the API URL on the Extension itself?

2023-04-21 02_28_44-Window

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions