How to Change Blog Topic URLs

Permalink
The links for our Blog topics are currently broken.

Here is a sample broken link:
topic/15/sample%20topic?cID=

Here is a sample of what it should be:
main/news/topic/15/sample%20topic

Where would I go about changing what link structure is used for topics?

Thanks!

 
linuxoid replied on at Permalink Reply
linuxoid
That usually happens when a page is added in the Dashboard and you go straight to that page. If you go to Home and follow the links to the page, it should be shown fine then if the Pretty URL is turned on.

If you want to change the way it's shown (e.g. topics set up in other languages have the paths in that language and you want them to be shown in English), then you can override the topic list block controller.php, e.g.
public function getTopicLink(\Concrete\Core\Tree\Node\Node $topic = null)
    {
        if ($this->cParentID) {
            $c = \Page::getByID($this->cParentID);
        } else {
            $c = \Page::getCurrentPage();
        }
        if ($topic) {
            $nodeName = $topic->getTreeNodeName();
       switch ($nodeName) {
      case 'Эконом':
          $nodeName = 'economy';
          break;
      case 'Бюджет':
          $nodeName = 'budget';