当我转到 post 详细信息时 url 被损坏

The url gets corrupted when I go to post detail

当我去细节时,我覆盖了菜单 links 并得到一个错误。

路线

 $routes->group('(en|tr)', ['namespace' => 'App\Controllers\Frontend'], function ($routes) {
    $routes->get('announcement-detail/(:any)', 'Home::announcementDetail//');

详情link

<a href="announcement-detail/<?= $key['yazi_id']; ?>"
                                           class="btn btn-small btn-main btn-round-full">

url错误

您需要像这样配置您的url

 <a href="<?= base_url('announcement-detail') ?>/<?= $key['yazi_id']; ?>">