CAKEPHP 3.0
I have used this search plugin for the Help Center I am working on. https://github.com/FriendsOfCake/search
So I have already integrated this plugin on a Forum page and it can successfully filter the searched keyword accurately. However, when I click the 'view' button of the topic from the search results https://gyazo.com/b53046571a26c8dfea624b1e7aee88d7, the URL is changed to /index/?view=view&forum_thread_id=10 and can't locate its View page which is supposed to be /forum-threads/view/10
Does anyone know why this plugin changes the URL of a clicked button link? Where to check or what file should I modify so that it can successfully locate the view page? Thank you for your help in advance.
[EDIT]
Template\ForumThreads\index.ctp
<?= $this->Form->create($viewCounter) ?>
<?= $this->Form->button('View', [
'type' => 'submit',
'class'=>'btn btn-link btn-xs',
'escape' => false,
'name' => 'view',
'value'=>'view'
]) ?>
<?= $this->Form->hidden('forum_thread_id', [
'value' => $forumThread['id']
]) ?>
<?= $this->Form->end() ?>