diff options
author | Melissa Zhang <mzhang19096@gmail.com> | 2020-07-30 10:37:16 -0700 |
---|---|---|
committer | Melissa Zhang <mzhang19096@gmail.com> | 2020-07-30 10:37:16 -0700 |
commit | 5b348d21a79a7ecd9ac30d808edaa03c3f26dfef (patch) | |
tree | b9c8b9029c9b574708a3fb673b9924dde9673873 /src/client/apis/hypothesis/HypothesisUtils.ts | |
parent | 7ced683e2c0bbc1b666e0b01799788810cebfd98 (diff) |
added option to follow link to external page
Diffstat (limited to 'src/client/apis/hypothesis/HypothesisUtils.ts')
-rw-r--r-- | src/client/apis/hypothesis/HypothesisUtils.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/apis/hypothesis/HypothesisUtils.ts b/src/client/apis/hypothesis/HypothesisUtils.ts index e245552b1..8eaad2905 100644 --- a/src/client/apis/hypothesis/HypothesisUtils.ts +++ b/src/client/apis/hypothesis/HypothesisUtils.ts @@ -38,10 +38,9 @@ export namespace Hypothesis { })); }; - // Construct an URL which will scroll the web page to a specific annotation's position + // Construct an URL which will automatically scroll the web page to a specific annotation's position export const makeAnnotationUrl = (annotationId: string, baseUrl: string) => { - return `https://hyp.is/${annotationId}/${baseUrl}`; // embeds the generic version of Hypothes.is client, not the Dash version - // return baseUrl + '#annotations:' + annotationId; + return `${baseUrl}#annotations:${annotationId}`; }; // Extract username from Hypothe.is's userId format |