aboutsummaryrefslogtreecommitdiff
path: root/src/client/apis/hypothesis/HypothesisApiUtils.ts
diff options
context:
space:
mode:
authorMelissa Zhang <mzhang19096@gmail.com>2020-07-10 13:31:13 -0700
committerMelissa Zhang <mzhang19096@gmail.com>2020-07-10 13:31:13 -0700
commit4f16c24aa5221db8670fa69b7f7bee0f897fb203 (patch)
tree4b0398fea2e36ee8ae89ab8ba138d3dd8710b638 /src/client/apis/hypothesis/HypothesisApiUtils.ts
parenta721dabf0432286f60bd33bef8a80159b04b6e53 (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.ts3
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