Open JbIPS opened 2 months ago
Probably the issue happens when calling getDefaultBranchName
without passing all backend configuration options.
Indeed if you add branch: master
(or whatever you need) to the backend configuration it will work.
You're right, it looks like the API roots are hard-wired into decap-cms-lib-util.
And setting the branch in my YAML do the trick, thanks a lot! :partying_face:
Should I create a PR to pass an optional api_root
to getDefaultBranch
and apiRequest
? If present, this line will use it as-is instead.
@JbIPS a PR would be helpful, thanks!
Describe the bug I configured a backend for my hosted version of Gitlab
On login:
GET https://gitlab.*****/api/v4/projects/web%2Flanding
:heavy_check_mark:GET https://gitlab.com/api/v4/projects/web%2Flanding
:x:Of course the 3rd call gives a 404 and login workflow stops.
I looked at the sources but couldn't find a static ref to
gitlab.com
.To Reproduce
Expected behavior No call should be made to
gitlab.com
Screenshots![Screenshot from 2024-04-09 17-50-08](https://github.com/decaporg/decap-cms/assets/2248473/4ecf1c1b-2fb7-4c17-8f7b-f50bbf0b2c40)
Applicable Versions:
CMS configuration