{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/a52480887c8e61477628d24c6e8755c7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"a52480887c8e61477628d24c6e8755c7","url":"https://api.github.com/users/tipichris","login":"tipichris","id":89666},"milestone":null,"assignee":null,"updated_at":"2011-11-08T16:16:49Z","labels":[],"comments":0,"closed_at":null,"url":"https://api.github.com/repos/thorsten/phpMyFAQ/issues/340","body":"If using SEO friendly URLs, the suggestions when asking a new question are mangled. The filename part is missing. This patch addresses the issue\r\n\r\n```\r\n--- ajaxservice.php.orig        2011-11-08 16:04:50.000000000 +0000\r\n+++ ajaxservice.php     2011-11-08 16:05:57.000000000 +0000\r\n@@ -407,6 +407,7 @@\r\n                         );\r\n                         $oLink       = new PMF_Link(PMF_Configuration::getInstance()->get('main.referenceURL') . $url);\r\n                         $oLink->text = PMF_Utils::chopString($result->question, 15);\r\n+                        $oLink->itemTitle = $result->question;\r\n                         $response   .= sprintf('<li>%s<br /><div class=\"searchpreview\">%s...</div></li>',\r\n                             $oLink->toHtmlAnchor(),\r\n                             PMF_Utils::chopString(strip_tags($result->answer), 10)\r\n\r\n\r\n```","html_url":"https://github.com/thorsten/phpMyFAQ/issues/340","title":"SEO friendly URLs in suggestions when adding questions mangled","number":340,"id":2175985,"created_at":"2011-11-08T16:16:49Z"},"action":"opened"}