sgup23
(Shweta Gupta)
September 4, 2017, 8:29am
1
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.
pigeonflight
(David Bain (Will Theme Plone Sites))
September 4, 2017, 11:05am
2
@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
sgup23
(Shweta Gupta)
September 5, 2017, 11:26am
3
Thanks David Bain for your suggestion.
I was able to solve it with the pointers you gave.
pigeonflight
(David Bain (Will Theme Plone Sites))
September 5, 2017, 1:03pm
4
great
Did you have to use "output_relative_to"?
sgup23
(Shweta Gupta)
September 6, 2017, 6:12am
5
I could see that transformation was not working. it is resolved by importing HTML Output Filters profile in portal setup.
pigeonflight
(David Bain (Will Theme Plone Sites))
September 6, 2017, 12:52pm
6
That's interesting, the installing of that profile may help me on a project that I'm working on now
sgup23
(Shweta Gupta)
September 7, 2017, 10:27am
7
Sure! please try and let me know if that works.