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

MastaP created an issue. See original summary.

anon’s picture

Priority: Major » Normal

Are the script loaded?

If it doesn't work, there most be some error messages.

MastaP’s picture

Before 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!

anon’s picture

anon’s picture

Status: Active » Closed (cannot reproduce)