-
Notifications
You must be signed in to change notification settings - Fork 11
Handle failed request #26
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
Conversation
Switch to next url if previous fails
|
Is it necessary to hard-code https://github.com/deldesir/calibre-web/blob/60e9c77f0161298171518710294f723c7852a7a4/cps/static/js/main.js#L218 Is DRY / SSOT not possible in this situation? ASIDE: Hard-coding is fine for now, but in future months (if future-proof automation is genuinely safe!) then we can consider driving off of...
...as mentioned in: |
|
@deldesir thanks for the excellent, long & edifying design review earlier this morning. 💯 Quick summary:
Feel free to re-work this PR in-place — or perhaps to replace it with an entirely new PR — either way! ✅ |
Determine the appropriate endpoint based on user input
Use the referrer too determine the endpoint
|
Fantastic progress. No matter if a future PR later steers this in a slightly different direction. |
Extract the correct path and add the endpoint to it.
|
Now, we get the path in a better way by just extracting the last part of the current url and add the endpoint to it. |
|
Looks incredible! If in addition, HTTP_REFERER's also no longer being used! |
Switch to next url if previous fails