cancel
Showing results for 
Search instead for 
Did you mean: 

Get platform/hybris url when hybris and spartacus are hosted in different environments

0 Kudos

Hi All,

We have a situation where hybris and spartacus are hosted in different environments, there by having different urls

( EX : Spartacus: https://release10spartacus21.xx.xx.xx.com:4200

Backoffice: https://release14hybris71.xx.xx.xx.com:9002/backoffice/)

Since the emails are run in the hybris instance, If you need to add any media to an email(ex : logo image), then the hybris OOTB media url service tries to search for the property media.<site>.http or media.<site>.https . The value of this property will be the context for the media url.

Now in our case, this url is always getting translated to spartacus url instead of hybris url as the site url will be the storefront url. Since the media objects are definitely not in the sparatcus, the logos are not getting displayed.

We have no option to define the media context url as in previous versions, as the site and backoffice urls are dynamic and with every deployment they change.

Can somebody help me to know if there is any way we can find or is there any default/ootb property which gives the platform url?

Accepted Solutions (0)

Answers (0)