netresearch / t3x-rte_ckeditor_image

Image support in CKEditor for the TYPO3 ecosystem
GNU Affero General Public License v3.0
56 stars 64 forks source link

TYPO3 generate wront path to show image in frontend after upgrading from v11 to v12 #293

Open agendartobias opened 2 months ago

agendartobias commented 2 months ago

TYPO3 12.4.5 rte_ckeditor_image 12.0.2

I get error 404 that image is not found. Reason is that there is no / before fileadmin URL. So link looks like this:

<img alt="" class="img-fluid" data-htmlarea-file-table="sys_file" data-htmlarea-file-uid="4676" height="379" src="fileadmin/_processed_/7/f/csm_20220819_KANmyimagej_43d5e4676a.jpg" style="" title="" width="570">

https://mysite.si/news/my_first_news_title/fileadmin/_processed_/7/f/csm_20220819_KAN_avgust_2_Petra_Korenak__KGZ_Ptuj_43d5e4676a.jpg

It shoud be like this: https://mysite.si/fileadmin/_processed_/7/f/csm_20220819_KAN_avgust_2_Petra_Korenak__KGZ_Ptuj_43d5e4676a.jpg

If i go to BE and save the content element again it works but this is not a good solution

agendartobias commented 2 months ago

Update: i change this line: https://github.com/netresearch/t3x-rte_ckeditor_image/blob/a372489e39d7c77f69cb1bb49b2b8a44a49770f9/Configuration/TypoScript/ImageRendering/setup.typoscript#L7

from lib.parseFunc_RTE to lib.parseFunc and it works