-
Notifications
You must be signed in to change notification settings - Fork 65
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
[SVCS-423] Links in pdfs should no longer open in the iframe. #273
[SVCS-423] Links in pdfs should no longer open in the iframe. #273
Conversation
bca79ce
to
106f60b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and works as expected. 🎆 Move to PCR.
@AddisonSchiller FYI, not sure if relevant since I am not familiar with PDF rendering in HTML. I did two tests. I had had doubt in the First, I tested a PDF file with bookmark links. It worked as expected (no new tab). Here is the file that I used: MFR_Test_2.pdf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @AddisonSchiller,
I happened to merge the iframe sandboxing PR first, which has caused this to stop working. Can you play around with the other sandboxing toggles to see if you can get it working again? Thanks.
Cheers,
@felliott
Instead, they should open in a new tab/window Changing test to match pdf template change/fix
5fec67d
to
7021488
Compare
fixed. Sorta killed the commit for it when merging. Anyway, sandboxing just needed 'allow-popups'. |
Changes Unknown when pulling 7021488 on AddisonSchiller:feature/link-in-pdf-fix into ** on CenterForOpenScience:develop**. |
yaaaaaaaaaaaaaaaaaaaay. merged. |
Instead, they should open in a new tab/window
https://openscience.atlassian.net/browse/SVCS-423
Purpose
Fix opening links in an iframe.
Update tests to match fix.
Summary of changes
added default behavior of links to open in new tab, instead of on same page (in iframe)
Changed MFR tests to match this behavior.
QA Notes
Open a pdf that has a link in it (example on jira ticket)
Click on the link
It should redirect you in a new tab, instead of in the iframe.
Mfr pdf tests should pass