Closed (fixed)
Project:
FAQ Search
Version:
6.x-1.1-beta1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Sep 2009 at 05:38 UTC
Updated:
20 Sep 2009 at 22:40 UTC
faq_search.find.inc, line 19.
From:
<?php
while ($row = db_fetch_object($result)) {
$string .= "<a href='node/". $row->nid ."'>". $row->question ."</a>";
}
?>
To:
<?php
while ($row = db_fetch_object($result)) {
$string .= "<a href='/".drupal_lookup_path('alias', 'node/'.$row->nid)."'>". $row->question ."</a>";
}
?>
Thanks for the module!! Hope this improves it.
Comments
Comment #1
johnpv commentedExcellent point, thanks! However, what if there is an FAQ that does not have an alias, that node will then be linked to the root ("/")?
Comment #2
johnpv commentedSo how about this instead:
Comment #3
johnpv commentedComment #4
bensnyder commented:)