sluggi icon indicating copy to clipboard operation
sluggi copied to clipboard

JavaScript from the backend is included in the frontend

Open devtroll opened this issue 2 years ago • 0 comments

Before I describe my problem, let me first say that this is a great extension.

Unfortunately, including the JavaScript file in the "ext_localconf.php" file in the frontend loads the backend JavaScript libraries. The reason for this is that the call to the line

https://github.com/wazum/sluggi/blob/fb4aae94eaa92172eb6aa8b04a057bf8c194088c/ext_localconf.php#L16

integrates the RequireJS module from the backend into the frontend and thus "prepares" all JavaScript library. Since I use libraries in the frontend that conflict with RequireJS, I am therefore currently unable to use the extension.

A query on the TYPO3_MODE will unfortunately also no longer work, since this is deprecated since TYPO3 11. The only possibility would be to include it via hook.

Can you possibly implement this change?

System environment

  • DDEV
  • PHP 8.1
  • TYPO3 v11

Greetings from Germany

devtroll avatar Jul 21 '22 08:07 devtroll