Skip to content

Commit

Permalink
[K6.2] SEF url issue - Smart Search Plugin #9583
Browse files Browse the repository at this point in the history
  • Loading branch information
xillibit committed Nov 26, 2023
1 parent 7c26327 commit 88e708b
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions src/plugins/plg_finder_kunena/kunena.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 88e708b

Please sign in to comment.