From 88e708b6b945307fd8408ba038f9026a44de6cce Mon Sep 17 00:00:00 2001 From: Florian DAL FITTO Date: Sun, 26 Nov 2023 22:02:29 +0100 Subject: [PATCH] [K6.2] SEF url issue - Smart Search Plugin #9583 --- src/plugins/plg_finder_kunena/kunena.php | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/src/plugins/plg_finder_kunena/kunena.php b/src/plugins/plg_finder_kunena/kunena.php index 2c1b25d2429..21465797de8 100644 --- a/src/plugins/plg_finder_kunena/kunena.php +++ b/src/plugins/plg_finder_kunena/kunena.php @@ -473,7 +473,7 @@ protected function createIndexerResult($message) $item->title = $message->subject; // Build the necessary url, route, path and alias information. - $item->url = $this->getUrl($message->id, $this->extension, $this->layout); + $item->url = $message->getUrl(); $item->route = $item->url; $item->alias = KunenaRoute::stringURLSafe($message->subject); @@ -501,25 +501,6 @@ protected function createIndexerResult($message) return $item; } - /** - * Method to get the URL for the item. The URL is how we look up the link - * in the Finder index. - * - * @param mixed $id The id of the item. - * @param mixed $extension Unused. - * @param string $view View name. - * - * @return string The URL of the item. - * @since Kunena - * @throws Exception - */ - protected function getUrl($id, $extension, $view) - { - $item = KunenaMessageHelper::get($id); - - return "index.php?option=com_kunena&view={$view}&catid={$item->catid}&id={$item->thread}&mesid={$item->id}"; - } - /** * Method to translate the native content states into states that the * indexer can use.