new: [KC] profile link added
parent
398307e414
commit
be064bb0c9
|
@ -136,6 +136,7 @@ class UsersController extends AppController
|
||||||
if (!empty($responsePayload)) {
|
if (!empty($responsePayload)) {
|
||||||
return $responsePayload;
|
return $responsePayload;
|
||||||
}
|
}
|
||||||
|
$this->set('keycloakConfig', Configure::read('keycloak'));
|
||||||
$this->set('metaGroup', $this->isAdmin ? 'Administration' : 'Cerebrate');
|
$this->set('metaGroup', $this->isAdmin ? 'Administration' : 'Cerebrate');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,9 @@ if (!empty($field['url'])) {
|
||||||
$field['url'] = str_replace('{{' . $k . '}}', $this->Hash->extract($data, $path)[0], $field['url']);
|
$field['url'] = str_replace('{{' . $k . '}}', $this->Hash->extract($data, $path)[0], $field['url']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (substr($field['url'], 0, 4) === 'http') {
|
||||||
|
$baseurl = '';
|
||||||
|
}
|
||||||
$string = sprintf(
|
$string = sprintf(
|
||||||
'<a href="%s%s">%s</a>',
|
'<a href="%s%s">%s</a>',
|
||||||
$baseurl,
|
$baseurl,
|
||||||
|
|
Loading…
Reference in New Issue