public function getUrl() { // Replace the {user_id} token with the actual user id. return str_replace('{user_id}', $this->getUser()->get('id'), parent::getUrl()); }