From ca70b1983188faf11d3ec9990b0415f62718be1f Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Mon, 12 Feb 2024 20:10:18 -0700 Subject: [PATCH] fix claim-view page when the claim argument is not a global ID --- src/views/ClaimView.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/ClaimView.vue b/src/views/ClaimView.vue index 9ba7b48..0f17510 100644 --- a/src/views/ClaimView.vue +++ b/src/views/ClaimView.vue @@ -564,8 +564,10 @@ export default class ClaimView extends Vue { } async loadClaim(claimId: string, identity: IIdentifier) { - const url = - this.apiServer + "/api/claim/byHandle/" + encodeURIComponent(claimId); + const urlPath = libsUtil.isGlobalUri(claimId) + ? "/api/claim/byHandle/" + : "/api/claim/"; + const url = this.apiServer + urlPath + encodeURIComponent(claimId); const headers = await this.getHeaders(identity); try {