thorsten/phpMyFAQ — Issue #340: SEO friendly URLs in suggestions when adding questions mangled
Author: tipichris
Created: 2011-11-08 16:16:49+00:00
State: open

If using SEO friendly URLs, the suggestions when asking a new question are mangled. The filename part is missing. This patch addresses the issue

```
--- ajaxservice.php.orig 2011-11-08 16:04:50.000000000 +0000
+++ ajaxservice.php 2011-11-08 16:05:57.000000000 +0000
@@ -407,6 +407,7 @@
);
$oLink = new PMF_Link(PMF_Configuration::getInstance()->get('main.referenceURL') . $url);
$oLink->text = PMF_Utils::chopString($result->question, 15);
+ $oLink->itemTitle = $result->question;
$response .= sprintf('
%s

%s...

',
$oLink->toHtmlAnchor(),
PMF_Utils::chopString(strip_tags($result->answer), 10)

```