This is return from slim controller with a variable $userid, that needs to be redirected to memberlist with a parameter
return $response->withStatus(200)->withHeader(‘Location’, ‘/memberlist/’.$userid);
example from href tag in twig.
<a href=“{{route(‘memberlist’,{_userid:admuserid})}}”
Route in slim 3
$this->get(‘/memberlist[/{_userid}]’, App\Controllers\UserGroupController::class . ‘:memberlist’)->setName(‘memberlist’);