Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Geting Search Result URLs to match up with Permalinks

dan39dan39 New
edited August 2007 in Vanilla 1.0 Help
When mod_rewrite is enabled (with Friendly URLs), has anyone noticed that the search result pages spit out the shortened URL instead of the URL that's used in the discussion lists?

Does anyone know how to get search.php to spit out the same URLs that the discussion list uses?

EDIT: Nevermind. I figured out how to change the main links in the search results (not the comment links, which I think needs to stay that way). In case anyone's curious, just copy a new search_results_comments.php into your theme and edit the first few lines to look like this:

$Suffix = CleanupString($Comment->Discussion); $CommentList .= '<li class="SearchComment'.($Alternate ? ' Alternate' : '').'"> <ul> <li class="DiscussionTopic"> <span>'.$this->Context->GetDefinition('DiscussionTopic').'</span> <a href="'.GetUrl($this->Context->Configuration, 'comments.php', '', 'DiscussionID', $Comment->DiscussionID, '', '', $Suffix).'/">'.$Comment->Discussion.'</a>
This discussion has been closed.