Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
When we use the CDN module, a link field with the Linkit widget has problems.
The modal toolbar disappear
The search autocomplete does not work
The cancel button does not work
No JS error on the console. Seems unresponsive.
We don't see errors in the error logs.
Any clue? Thanks
Comments
Comment #2
anonAre the script loaded?
If it doesn't work, there most be some error messages.
Comment #3
MastaP CreditAttribution: MastaP commentedBefore cdn enabled:
[{command: "settings", settings: {basePath: "/", pathPrefix: "en/",…}, merge: true},…]
1. 0:{command: "settings", settings: {basePath: "/", pathPrefix: "en/",…}, merge: true}
2. 1:{command: "insert", method: "html", selector: "#linkit-modal",…}
3. 2:{command: "insert", method: "prepend", selector: "#linkit-modal", data: "", settings: null}
After cdn enabled :
We do not see any js error, but it seems two actions add_css and prepend js are added by cnd enabled.
[{command: "settings", settings: {basePath: "/", pathPrefix: "en/",…}, merge: true},…]
1. 0:{command: "settings", settings: {basePath: "/", pathPrefix: "en/",…}, merge: true}
2. 1:{command: "add_css",…}
3. 2:{command: "insert", method: "prepend", selector: "head",…}
4. 3:{command: "insert", method: "html", selector: "#linkit-modal",…}
5. 4:{command: "insert", method: "prepend", selector: "#linkit-modal", data: "", settings: null}
Our current solution was to BLACKLIST “sites/all/modules/linkit/*” in the CDN module configuration.
But is this the only solution?
Thanks!
Comment #4
anonCan this be related?
#2714155: ajax-loading and attached libraries
https://www.drupal.org/node/2714155
Comment #5
anon