Skip to content

Commit

Permalink
Merge pull request #9977 from jacobtylerwalls/harden-resource-report
Browse files Browse the repository at this point in the history
Harden link resolution of resource report
  • Loading branch information
njkim authored Sep 5, 2023
2 parents c46a919 + 0b0092f commit e288099
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ define([
&& params?.report?.attributes?.resourceid)
|| !params.cache
) {
url = arches.urls.api_bulk_disambiguated_resource_instance + `?v=beta&resource_ids=${params.report.attributes.resourceid != '' ? params.report.attributes.resourceid : window.location.pathname.split("/")[2]}`;
url = arches.urls.api_bulk_disambiguated_resource_instance + `?v=beta&resource_ids=${params.report.attributes.resourceid != '' ? params.report.attributes.resourceid : window.location.pathname.split("/").reverse()[0]}`;
if(params.report.defaultConfig?.uncompacted_reporting) {
url += '&uncompacted=true';
}
Expand Down

0 comments on commit e288099

Please sign in to comment.