I think this should be
```html+php
<a href="<?php echo sprintf("%s/scp/kb.php?a=search&topicId=%s", $cfg->getBaseUrl(), $ticket->getTopicId()); ?>">
```

So that the installed location (URL base) of the ticketing system is not lost