on ‎2019 Feb 22 11:21 AM
On my local instance "media.legacy.prettyURL" is set to true, and the url of media created is /hmc/medias/sys_master/images/images/h8d/h3b/8878587183134/main.png,
but when i set "media.legacy.prettyURL" to false it is again creating media with the url - /hmc/medias/sys_master/images/images/h8d/h3b/8878587183134/main.png , but i need the URL as - /medias/someFileName.jpg?context=NAYDCL3IGAZC6ZTPN4XGU4DHHI5DU4LXMVZHI6JRGIZTINI
when does Hybris creates context for the media URL? I have followed the same steps mentioned in the page https://help.hybris.com/6.2.0/hcd/8c0f64c786691014aa95f9f6b572f248.html but nothing helps. Is any other configuration needed?
Request clarification before answering.
Just make sure to build again (i.e. execute ant ) and restart the application after setting the value of media.legacy.prettyURL as true/false in the local.properties file.
Please let me know if you still face the issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it worked after executing ant
Great!
however after setting media.legacy.prettyURL =true , the media appears broken in hmc, while with this setting media.legacy.prettyURL =false, the media is visible in hmc.
Broken media is not related to media.legacy.prettyURL. Did you see any suspicious thing related to media in the log? If not, please try the following things:
Restart the server and try again.
Clear the browser cache or try in some other browser.
Perform ant clean all updatesystem, restart the server and try again.
Go to hAC > Maintenance > Cleanup > Orphaned media files and Clean orphaned files (if any)
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.