vuestorefront / magento2-vsbridge-indexer

This is official Vue Storefront, native, Magento2 indexer
https://vuestorefront.io
MIT License
69 stars 89 forks source link

Image links in product description #208

Open simonmaass opened 4 years ago

simonmaass commented 4 years ago

Currently in the product description included images are transfered to ES with broken links:

for example: <img src="{{media url="wysiwyg/xxxx.png"}}" alt="" width="797" height="319">

description always should be transformed and those broken URL replaced to proper magento asset paths

dio5 commented 4 years ago

I'd like to add to this (rather than opening a new ticket).

Also, on static blocks & cms pages, the {{store}} directive seems to be wrong and always transformed to an admin url rather than a correct store one (also with multistore). The problem there seems to be that even though emulation is used and storeid is passed to the template filter, the filter still needs a frontend url model passed, otherwise it uses the backend one. But even with that it still has issues with multistore as it then always just uses the first store and the url is only correct on one store.

dio5 commented 4 years ago

Just for reference, re my earlier comment on cms & static block directives I've fixed by using a custom url model that bypasses the url caching so it works on multistore and passing the scope id to the urlmodel, which then gets passed to the templatefilter in CmsContentFilter.php