SharePoint 2013: Friendly URL’s in Publishing HTML Field is broken and showing FIXUPREDIRECT.ASPX as hyperlink in display template
I came across a weird scenario recently, thought to share here so that it will be helpful for some of our friends.
In one of the article page we were having a Publishing HTML Field, content author added relative friendly URL as a hyperlink inside the field. I.e. help/ithelp/lync
This page was supposed to be crawled and this Publishing HTML Field’s search managed property was used to display the column data in a search display template in content search web part (CBS).
The result displayed in content search web part was perfect except some of the hyperlinks are pointing to wrong pages.
The URL’s were pointing to FIXUPREDIRECT.ASPX page with some GUID’s as query string like following.
Analysis of the issue:
After analysing the issue for couple of hours found that it is something related to managed metadata terms as the query string formed had termsetid and termId as query sting parameters.
Also we found that only the friendly URL’s ware broken. The magic happening while the page is getting saved and SharePoint tries to resolve the friendly URL with available terms and replacing the URL with FIXUPREDIRECT.ASPX URL and same gets crawled. It is nothing to do with search display template.
We tried to find out the solution to resolve this issue but no luck; we have tried workaround to replace the friendly relative URL with non-friendly URL and it worked for us.
help/ithelp/lync TO help/ithelp/lync.aspx