Yoast / Yoast-SEO-for-TYPO3

Yoast SEO plugin for TYPO3
Other
51 stars 56 forks source link

Broken Page Backend Preview in TYPO3 v13.4 and yoast_seo v10.0 #584

Open eckonator opened 1 month ago

eckonator commented 1 month ago

Please give us a description of what happened.

JavaScript files can't be loaded in my local DDEV project in TYPO3 v13.4 Backend:

Uncaught (in promise) TypeError: Der Spezifizierer "@yoast/yoast-seo-for-typo3/dist/plugin.js" war ein blanker Spezifizierer, wurde aber nicht zu etwas neu zugeordnet. Relative Modulspezifizierer müssen mit "./", "../" oder "/" beginnen. java-script-item-processor.js
Uncaught (in promise) TypeError: Der Spezifizierer "@yoast/yoast-seo-for-typo3/yoastModalEs6.js" war ein blanker Spezifizierer, wurde aber nicht zu etwas neu zugeordnet. Relative Modulspezifizierer müssen mit "./", "../" oder "/" beginnen. java-script-item-processor.js

Howto fix this issue?

I have compared the backend integration of JavaScripts in EXT:yoast_seo with EXT:news extension from Georg Ringer. I noticed that there is an incorrect spelling of a file in the yoast_seo extension.

Wrong: vendor/yoast-seo-for-typo3/yoast_seo/Configuration/JavascriptModules.php

Correct: vendor/yoast-seo-for-typo3/yoast_seo/Configuration/JavaScriptModules.php

After changing this and flush caches, the preview works fine in backend now. Please fix it in next v10 release. Thank you!

Technical info

RinyVT commented 1 month ago

Thanks for raising this issue! Apparently this worked on my case-insensitive ddev environment? But I've opened up a PR for the next 10.1.0 where this issue has been fixed and I've added some new functionality. I'm hoping to add some more bugfixes to that release but if that takes too long I'll release it first :)