cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Media URL not created with context

Former Member
0 Likes
1,983

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?

Accepted Solutions (1)

Accepted Solutions (1)

arvind-kumar_avinash
Active Contributor
0 Likes

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.

Former Member
0 Likes

Hi it worked after executing ant, 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. Can you please explain the reason behind this. Thanks !!

arvind-kumar_avinash
Active Contributor
0 Likes

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)

Answers (0)