aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionSubView.tsx
diff options
context:
space:
mode:
authorMelissa Zhang <mzhang19096@gmail.com>2020-08-04 19:31:24 -0700
committerMelissa Zhang <mzhang19096@gmail.com>2020-08-04 19:31:24 -0700
commit6fe4cfc95f061928a7040878ae90cd1df5f181e9 (patch)
tree1c37cf65428f00bb7fffebe290dcaac6cecf821b /src/client/views/collections/CollectionSubView.tsx
parentbd6b5a81480f7f56a65c13954e080281279b6627 (diff)
clean hypothes.is urls, change web doc default to non-annotation mode
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
-rw-r--r--src/client/views/collections/CollectionSubView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx
index b66da27b4..2c382fe88 100644
--- a/src/client/views/collections/CollectionSubView.tsx
+++ b/src/client/views/collections/CollectionSubView.tsx
@@ -351,7 +351,7 @@ export function CollectionSubView<T, X>(schemaCtor: (doc: Doc) => T, moreProps?:
if (existingWebDoc) {
this.addDocument(Doc.MakeAlias(existingWebDoc));
} else {
- const cleanedUri = uriList.split("#annotations:")[0]; // clean hypothes.is URLs that scroll directly to an annotation
+ const cleanedUri = uriList.split("#annotations:")[0]; // clean hypothes.is URLs that reference a specific annotation (eg. https://en.wikipedia.org/wiki/Cartoon#annotations:t7qAeNbCEeqfG5972KR2Ig)
this.addDocument(Docs.Create.WebDocument(uriList, {
...options,
title: cleanedUri,