-
Notifications
You must be signed in to change notification settings - Fork 22
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
Fix reader data saving #42
base: master
Are you sure you want to change the base?
Conversation
Saving data for ePub File is fixed by updating the base path take as reference.
Saving data for ePub File is fixed by updating the base path taken as reference.
Move the loading of the 'pdf.worker.js' file from ready.js to pdfreader.php
This first fix is about the PDF reader. I tested this fix with :
Does it this PR fix anything for other PDF users ? |
Saving data for ePub File is fixed by updating the base path taken as reference.
templates/pdfreader.php
Outdated
@@ -28,7 +28,7 @@ | |||
?> | |||
|
|||
<html dir="ltr"> | |||
<head class="session" data-nonce='<?php p($nonce);?>' data-downloadlink='<?php print_unescaped($downloadLink);?>' data-fileid='<?php print_unescaped($fileId);?>' data-filetype='<?php print_unescaped($fileType);?>' data-filename='<?php print_unescaped($fileName);?>' data-version='<?php print_unescaped($version);?>' data-basepath='<?php p($urlGenerator->linkTo("epubreader",""));?>' data-scope='<?php print_unescaped($scope);?>' data-cursor='<?php print_unescaped($cursor);?>' data-defaults='<?php print_unescaped($defaults);?>' data-preferences='<?php print_unescaped($preferences);?>' data-metadata='<?php print_unescaped($metadata);?>' data-annotations='<?php print_unescaped($annotations);?>'> | |||
<head class="session" data-nonce='<?php p($nonce);?>' data-downloadlink='<?php print_unescaped($downloadLink);?>' data-fileid='<?php print_unescaped($fileId);?>' data-filetype='<?php print_unescaped($fileType);?>' data-filename='<?php print_unescaped($fileName);?>' data-version='<?php print_unescaped($version);?>' data-basepath='<?php p($urlGenerator->linkToRoute('epubreader.page.showReader'));?>' data-scope='<?php print_unescaped($scope);?>' data-cursor='<?php print_unescaped($cursor);?>' data-defaults='<?php print_unescaped($defaults);?>' data-preferences='<?php print_unescaped($preferences);?>' data-metadata='<?php print_unescaped($metadata);?>' data-annotations='<?php print_unescaped($annotations);?>'> |
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.
@sysadminstory can you explain this change? Will linkToRoute
produce apps/epubreader
instead of custom_apps/epubreader
?
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.
I have read linkTo was deprecated, so I changed it to a non deprecated function.
To be honest, I'm totally not sure about what's wrong and what's right here !
Static files (like css, js, ...) are now loaded using the 'data-staticpath' parameter, that was added to every template. Static files must be loaded using the real physical URL (un the "customapps" folder if used) instead of the dynamic files, that must be loaded using the index.php file (hidden if the URL rewriting is activated)
c777a4b
to
cd18e33
Compare
… into fix-saving-data
@sysadminstory Is anything missing for merging this pull request? 🙏 |
Original PR: e-alfred#42 Saving data is fixed by updating the base path taken as reference.
Well, on my point of view, no, but the owner of this repo seems to be inactive :( |
This is a work in progress fix for the "not saving" anything #33 #29
This first fix is about the epub reader.
I tested this fix with :
Does it this PR fix anything for other epub users ?