-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Share links not working for APA articles #814
Comments
So to resolve this, somehow Bouncer needs to know that the target site embeds the client. I can think of a few options:
(1) has the advantage of not requiring any registration steps to set up or keep metadata in sync. It has the downside of not working for publicly inaccessible URLs. (2) and (3) require effort on our part or the publisher's part to register the association and keep it up to date. The registration could potentially get out of date or be invalid if only a subset of URLs under a registered prefix actually embed the client. (4) has the disadvantage that it only "just works" for annotations in groups specifically associated with the target page. |
For the sake of listing the very dumbest and quickest approach we could take here, we could add a text file to the bouncer repo which lists URL prefixes that are assumed to embed the client. The redirect view would check the annotation URL against this list before redirecting the user. |
Dumb for now, smart later? |
From APA:
Our developer took a look at Robert’s comments and he said that he believes
option #2 or #3 will work just fine.
We only have one URL prefix that allows their plugin embedding,
"/fulltext", and it doesn't have many URL subsets that do not use your
plugin within that path.
On Wed, Sep 26, 2018 at 9:48 AM Dan Whaley ***@***.***> wrote:
Dumb for now, smart later?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#814 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALhxmeWNevLhOtH4syhu69nB7NbdQnmKks5ue4WPgaJpZM4W5GY8>
.
--
Katelyn Lemay
Support Engineer @ Hypothesis <https://web.hypothes.is/>
|
OK. I'll suggest that we go with option #2 then. We can extend this to support other methods of determining whether a target URL embeds the client in future. |
URL patterns provided by Kadidra McCloud at APA. Fixes hypothesis/product-backlog#814
URL patterns provided by Kadidra McCloud at APA. Fixes hypothesis/product-backlog#814
This is related to #720, but before we solve this issue on a broader level, we need to fix it for APA.
Summary
The APA has embedded the Hypothesis client on their dev server and will soon embed on production. Currently, share links for annotations on articles do not work properly. What we're seeing is:
hyp.is
link is generated.hyp.is
link, Bouncer cannot detect that the APA has embedded Hypothesis on their siteWhen someone follows a share link to an annotation on an APA article, we need for Bouncer to not redirect to Via.
The text was updated successfully, but these errors were encountered: