Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
fix gitlab url
Browse files Browse the repository at this point in the history
  • Loading branch information
Toperlock committed Jan 19, 2024
1 parent 709a82a commit bf0dc62
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ def config(url):
for suffix in suffixes_to_remove:
if full_url.endswith(suffix):
full_url = full_url.rstrip(suffix)
if '/api/v4/projects/' in full_url:
parts = full_url.split('/api/v4/projects/')
full_url = parts[0] + '/api/v4/projects/' + parts[1].replace('/', '%2F', 1)
print (full_url)
url_parts = full_url.split('|')
if len(url_parts) > 1:
Expand Down

0 comments on commit bf0dc62

Please sign in to comment.