akeneo / pim-community-dev

[Community Development Repository] The open source Product Information Management (PIM)
http://www.akeneo.com
Other
949 stars 512 forks source link

Broken link on upload icon #4319

Closed JulienDotDev closed 8 years ago

JulienDotDev commented 8 years ago

Hi,

i'm using akeneo pim-community-standard 1.5. I have a test environment with an url like http://www.myurl.com/akeneo/.

Most of image links are ok but i noticed that on media field, the upload icon link was : "http://www.myurl.com/bundles/pimui/images/upload.png" instead of "http://www.myurl.com/akeneo/bundles/pimui/images/upload.png"

Best regards,

a2xchip commented 8 years ago

Hello @JulienDotDev. As i remember it had to be fixed by #759 PR #758 @willy-ahva may know the story about subdir installations better.

As i see from commit the issue is related with slash prefixing the asset url in twig. May be there are more slash's occurrences left in the code.

Update: PR was rejected

We could change that, but unfortunately it will not make the application work within a subdirectory, as it's not supported by Oro Platform. So a lots of features (mostly around JavaScript) will be broken in situation like this one. So as stated in the documentation, we only support having the PIM at the root of the virtualhost. I will create an issue to keep it in the todo list, but we are dependent of Oro Platform on this one. and I'm not sure there's a plan to support subdirectory in the future in Oro Platform, as using a separate virtualhost is a best practice, as it allows you to have a clean and specific HTTP server configuration for each application.

JulienDotDev commented 8 years ago

Hi a2xchip,

thanks for these informations. I do understand the best pratice to use a different virtualhost but i think there will be many people who, like me, are not allowed/able to manage virtualhost etc on development/production servers. I hope that Oro will allow this oneday and that in the end, akeneo will support it to.

Should i close ?

juliensnz commented 8 years ago

Hello,

I just checked with our product owner and we have a card in our backlog.

I will let you know here when it will be prioritized.

I close the issue if it doesn't bother you