Expand my Community achievements bar.

SOLVED

URL Encoding Inside Email Templates in 6.3

Avatar

Level 3

Hi Everyone,

We are using the default templates for workflows and tasks emails located at /etc/workflow/notification/email/default and /etc/workflow/notification/email/tasks. What we are facing issue with is getting the url to our assets being displayed properly so the users can be redirected to them. Our assets have spaces in their names so ${host.prefix}${payload.path.open} returns this for example http://localhost:4502/assetdetails.html/content/dam/msi-dam/admin/LPAVNPRAGRE1224 Single F Product Scan.tif.

Is there a way we can encode the payload path as url and get it as http://localhost:4502/assetdetails.html/content/dam/msi-dam/admin/LPAVNPRAGRE1224%20Single%20F%20Product%20Scan.tif for example?

Thank you very much,

Bobby

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

${payload.path.open} is already encoded for pages but not for assets. Not sure why is it not encoded for assets.

You may try to send email using custom process step, where you can customise urls based on your requirement.

Screenshot 2018-11-16 at 11.54.13 PM.png



Arun Patidar

View solution in original post

3 Replies

Avatar

Level 4

Were you able to find a solution to this? I'm having the same issue.

Avatar

Correct answer by
Community Advisor

Hi,

${payload.path.open} is already encoded for pages but not for assets. Not sure why is it not encoded for assets.

You may try to send email using custom process step, where you can customise urls based on your requirement.

Screenshot 2018-11-16 at 11.54.13 PM.png



Arun Patidar