Skip to content

Commit

Permalink
Change the link of a package with a multibuild flavor
Browse files Browse the repository at this point in the history
Instead of linking to a package show page with the form
`package_name:multibuild_flavor`, link to `package_name`, without
multibuild flavor. Package's show pages for multibuild flavors don't
exist as such.
  • Loading branch information
eduardoj committed Dec 18, 2024
1 parent 47c0be2 commit ce05778
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/app/assets/javascripts/webui/project_monitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ function initializeMonitorDataTable() {
data: null,
render: function (packageName) {
if (scmsync !== undefined) return packageName;
var url = '/package/show/' + projectName + '/' + packageName;
var packageNameWithoutMultibuildFlavor = packageName.replace(/:\w+$/, '');
var url = '/package/show/' + projectName + '/' + packageNameWithoutMultibuildFlavor;
return '<a href="' + url + '">' + packageName + '</a>';
}
},
Expand Down

0 comments on commit ce05778

Please sign in to comment.