Skip to content

Bad asset URL #14

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

Closed
sguionni opened this issue Apr 21, 2013 · 0 comments
Closed

Bad asset URL #14

sguionni opened this issue Apr 21, 2013 · 0 comments

Comments

@sguionni
Copy link

Hello,
i found an issue: the uploaded pictures path is wrong if the website is in a folder (so the image preview/open doesn't work).

In the file FMElFinderLoader.php, line 42,
i replaced:

'URL' => $request->getScheme() . '://' . $request->getHttpHost() . '/' . $path . '/',

by:

'URL' => $request->getScheme() . '://' . $request->getHttpHost() . $request->getBasePath() . '/' . $path . '/',

and it's working fine now.

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

No branches or pull requests

1 participant