Resolveuid not getting converted to relative links in Plone 5

Resolveuid not getting converted to relative links in Plone 5 after the upgrade. We are using TinyMCE as editor.. When I preview the page, I can see the link as http://10.207.31.36/resolveuid/822187870536c661115eb0c11d39a7a2.

Please let me know how can we change the link to relative url while previewing it.

@sgup23,
What's the current URL of your Plone site? Typically it would be something like http://10.207.31.36/Plone

If my assumption is correct then the path needed for resolveuid to work would be:
http://10.207.31.36/Plone/resolveuid/822187870536c661115eb0c11d39a7a2. Currently your system is putting out paths that are not relative to the location of your Plone site (again based on my assumption).

There is a helper utility called "output_relative_to" which might be what you're looking for. See an example here: https://plone-training.readthedocs.io/en/master/mastering_plone/zpt_2.html#the-view-for-news-items

Thanks David Bain for your suggestion.

I was able to solve it with the pointers you gave.

great :thumbsup:
Did you have to use "output_relative_to"?

I could see that transformation was not working. it is resolved by importing HTML Output Filters profile in portal setup.

That's interesting, the installing of that profile may help me on a project that I'm working on now :slight_smile:

Sure! please try and let me know if that works.