Skip to content

Commit 5bbd542

Browse files
committed
Fixed wrong URL if rewritten URLs are active
1 parent 41e5cbe commit 5bbd542

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

phpmyfaq/inc/PMF/Helper/Search.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,11 @@ public function renderInstantResponseResult(PMF_Search_Resultset $resultSet)
141141
);
142142

143143
$link = new PMF_Link($currentUrl, $this->_config);
144+
$link->itemTitle = $result->question;
144145
$faq = new stdClass();
145146
$faq->categoryName = $this->Category->getPath($result->category_id);
146147
$faq->faqQuestion = PMF_Utils::chopString($result->question, 15);
147-
$faq->faqLink = $link->toUri();
148+
$faq->faqLink = $link->toString();
148149

149150
$results['results'][] = $faq;
150151
}

0 commit comments

Comments
 (0)