JS optimizations break the relative path in documentcloud.adobe.com/view-sdk/main.js when using ADOBE PDF API Embed Script #4420
Labels
3rd party compatibility
Issues related to 3rd party compatibility like theme, plugin or hosting
module: combine JS
module: minify JS
severity: moderate
Feature isn't working as expected but has work around to get same value
type: bug
Indicates an unexpected problem or unintended behavior
Milestone
Before submitting an issue please check that you’ve completed the following steps:
YES - Made sure you’re on the latest version
YES - Used the search feature to ensure that the bug hasn’t been reported before
Describe the bug
When using ADOBE PDF API Embed Script, if our JS optimizations are enabled, the file https://documentcloud.adobe.com/view-sdk/main.js is copied locally. But it contains a relative path to load /ViewSDKInterface.js so this causes a 404 error on that file when trying to load it: - https://jmp.sh/ljwo4Ox
To Reproduce
Steps to reproduce the behavior:
Expected behavior
We should auto exclude documentcloud.adobe.com/view-sdk/main.js and from JS optimizations to prevent such issues
Screenshots
ViewSDKInterface.js is dynamically included within this file: https://documentcloud.adobe.com/view-sdk/main.js
https://jmp.sh/vhw43ms
Additional context
Ticket: https://secure.helpscout.net/conversation/1653397963/299819/
Backlog Grooming (for WP Media dev team use only)
The text was updated successfully, but these errors were encountered: