passionweb-manuel-schnabel / ai-seo-helper

Generates SEO metadata based on content using AI. Currently several metadata for pages and articles of EXT:news can be generated using an additional button next to the corresponding input fields.
9 stars 5 forks source link

Disturbing comment in <head> in frontend #6

Closed wowaTYPO3 closed 1 year ago

wowaTYPO3 commented 1 year ago

In the frontend source code of a page where the extension was used, a large comment in the form of the following appears in the area:

/<![CDATA[/

  | var TYPO3 = Object.assign(TYPO3 || {}, Object.fromEntries(Object.entries({"lang":{"AiSeoHelper.generation.keywords

etc. etc.

This can be seen here, for example: https://wwagner.net/typo3-workshops-schulungen

passionweb-manuel-schnabel commented 1 year ago

Hey Wolfgang,

I took a look at the problem and moved the integration of the inline language file into an event that is only fired in the backend.

The problem should now be fixed with the new version 0.5.1 and no additional script should be added within the head tag in the frontend.