[app] fix app share URI construction

and introduce 'packages' suffix that gets appended to the base URI
This commit is contained in:
Torsten Grote 2024-04-15 10:00:34 -03:00
parent 3d63f0f814
commit b755a18bc7
No known key found for this signature in database
GPG Key ID: 3E5F77D92CF891FF
1 changed files with 2 additions and 1 deletions

View File

@ -350,7 +350,8 @@ public class App implements Comparable<App>, Parcelable {
Repository repo = FDroidApp.getRepoManager(context).getRepository(repoId);
if (repo == null || repo.getWebBaseUrl() == null) return null;
return Uri.parse(repo.getWebBaseUrl()).buildUpon()
.path(packageName)
.appendPath("packages")
.appendPath(packageName)
.build();
}