diff options
author | Melissa Zhang <mzhang19096@gmail.com> | 2020-07-10 13:31:13 -0700 |
---|---|---|
committer | Melissa Zhang <mzhang19096@gmail.com> | 2020-07-10 13:31:13 -0700 |
commit | 4f16c24aa5221db8670fa69b7f7bee0f897fb203 (patch) | |
tree | 4b0398fea2e36ee8ae89ab8ba138d3dd8710b638 /src/client/apis/hypothesis/HypothesisApiUtils.ts | |
parent | a721dabf0432286f60bd33bef8a80159b04b6e53 (diff) |
automatically starts link when an annotation is created
Diffstat (limited to 'src/client/apis/hypothesis/HypothesisApiUtils.ts')
-rw-r--r-- | src/client/apis/hypothesis/HypothesisApiUtils.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/apis/hypothesis/HypothesisApiUtils.ts b/src/client/apis/hypothesis/HypothesisApiUtils.ts index 9cd4b9f80..9ba481c8c 100644 --- a/src/client/apis/hypothesis/HypothesisApiUtils.ts +++ b/src/client/apis/hypothesis/HypothesisApiUtils.ts @@ -65,7 +65,8 @@ export namespace Hypothesis { // Construct an URL which will scroll the web page to a specific annotation's position export const makeAnnotationUrl = (annotationId: string, baseUrl: string) => { - return `https://hyp.is/${annotationId}/${baseUrl}`; + return `https://hyp.is/${annotationId}/${baseUrl}`; // embeds the generic version of Hypothes.is client, not the Dash version + // return baseUrl + '#annotations:' + annotationId; }; // Extract username from Hypothe.is's userId format |