Skip to content

Commit 3b1baa3

Browse files
authored
Update link to use same ORCID base URL as backend is using
1 parent 32773c3 commit 3b1baa3

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

web/src/components/Presentation/OrcidId.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script lang="ts">
22
import { defineComponent } from '@vue/composition-api';
3+
import { ORCID_BASE_URL } from '@/util';
34
45
export default defineComponent({
56
props: {
@@ -26,7 +27,7 @@ export default defineComponent({
2627
<template>
2728
<div :style="{display: 'flex'}">
2829
<a
29-
:href="`https://orcid.org/${orcidId}`"
30+
:href="`${ORCID_BASE_URL}/${orcidId}`"
3031
:style="{display: 'flex'}"
3132
>
3233
<span

web/src/util.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,3 +188,9 @@ export function formatBiosampleDepth(depthAnnotation, depth) {
188188
}
189189
return formattedStr;
190190
}
191+
192+
/**
193+
* Base URL (without a trailing slash) at which the user can access
194+
* the same ORCID environment being used by the backend API.
195+
*/
196+
export const ORCID_BASE_URL = process.env.NMDC_ORCID_BASE_URL || "https://orcid.org";

0 commit comments

Comments
 (0)