Commit 92ab68a3 authored by Zen Fu's avatar Zen Fu
Browse files

[weblate] Fix GitLab URL when searching for tags (tails#17377)

parent 185076c8
......@@ -164,9 +164,9 @@ class Dependency:
break
else:
return None
if url.endswith("-/tags"):
if r.request.path_url.endswith("-/tags"): # look at final URL path in case of redirection
#gitlab
url_path = urllib.parse.urljoin(urllib.parse.urlparse(self.url).path+"/", "-/tag/")
url_path = urllib.parse.urljoin(urllib.parse.urlparse(self.url).path+"/", "-/tags/")
else:
#github
url_path = urllib.parse.urljoin(urllib.parse.urlparse(self.url).path+"/", "releases/tag/")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment