Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix url image wysiwyg multiview store #4436

Open
Axepih opened this issue Dec 30, 2024 · 1 comment
Open

Fix url image wysiwyg multiview store #4436

Axepih opened this issue Dec 30, 2024 · 1 comment
Labels

Comments

@Axepih
Copy link

Axepih commented Dec 30, 2024

Hi

Openmage 20.11.0

In app/code/core/Mage/Cms/Helper/Wysiwyg/Images.php

function getImageHtmlDeclaration

You have this path
$mediaPath = str_replace(Mage::getBaseUrl('media'), '', $fileurl);

In multi store with different url, this line cause issues on images

Recommended correction for the time being, if you have anything better, I'd be delighted
$mediaPath = str_replace(Mage::app()->getStore($this->_storeId)->getBaseUrl('media'), '', $fileurl);

@Axepih Axepih added the bug label Dec 30, 2024
@sreichel
Copy link
Contributor

Thanks for the reports.

I have an idea from reading, but It would be nice to use the issue-template and add "steps to reprocude", "expected" and "current" result. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants