Skip to content

Commit

Permalink
Use basePath in links
Browse files Browse the repository at this point in the history
Fixes #43.
  • Loading branch information
bsiegert committed Nov 20, 2023
1 parent 6be250b commit cd392db
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions static/pkgresults.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,11 @@ function PkgResultsTable(event) {
{ data: "Platform" },
{ data: "Compiler" }
],
order: [0, "desc"],
createdRow: function (row, data, dataIndex) {
$('td:eq(0)', row).wrapInner('<a href="/pkg/' + data.ResultID + '"></a>');
$('td:eq(0)', row).wrapInner(`<a href="${bt.basePath}pkg/${data.ResultID}"></a>`);
$('td:eq(1)', row).addClass(classes[data.BuildStatus]);
$('td:eq(2)', row).wrapInner('<a href="/build/' + data.BuildID + '"></a>');
$('td:eq(2)', row).wrapInner(`<a href="${bt.basePath}build/${data.BuildID}"></a>`);
}
});
}
Expand Down

0 comments on commit cd392db

Please sign in to comment.