I have my search results exactly as I'd like them but the returned path seems to always be truncated.
Here's what I have:
<a href="<%# GetDocumentUrl( ) %>"><%# Eval("SearchResultName") %></a>
The returned document title is correct and is a link, but the link truncates any returned document path and appends aspx to the cut off filename. Instead of taking me to the found document, it refreshes the page and now only shows me the search result that I'm trying to get to.
Any ideas?
In case it helps, here's my full search result transformation:
<li>
<div class="SearchResult">
<div class="ResultTitle">
<a href="<%# GetDocumentUrl( ) %>"><%# Eval("SearchResultName") %></a>
<br>
<span style="font-size: x-small;">
<span class="ResultDate">(<%# FormatDateTime(Eval("DocumentModifiedWhen"),"d-MMM-yyyy") %>)</span>
</div>
<span style="font-size: x-small;">
<div class="ResultBody">
<div class="ResultDescription"><%# LimitLength(StripTags(GetEditableValue("ContentText")),400," ... ") %></div>
<div class="ResultDescription"><%# LimitLength(StripTags(Eval("DocumentPageDescription")),400," ... ") %></div>
<div class="ResultDescription"><%# LimitLength(StripTags(Eval("JobSummary")),400," ... ") %></div>
<div class="ResultDescription"><%# LimitLength(StripTags(Eval("NewsSummary")),400," ... ") %></div>
<div class="ResultDescription"><%# LimitLength(StripTags(Eval("EventSummary")),400," ... ") %></div>
<div class="ResultDescription"><%# LimitLength(StripTags(Eval("OfficeDescription")),400," ... ") %></div>
<div class="ResultDescription"><%# LimitLength(StripTags(Eval("ArticleText")),400," ... ") %></div>
<div class="ResultDescription"><%# LimitLength(StripTags(Eval("PublicationText")),400," ... ") %></div>
<div class="ResultTags"><%# Eval("DocumentTags") %></div></span>
</div>
</div>
</li>
<br>