fix: [baseurl] for openmodal actions in the index factory fixed, fixes #46
- invalid url by prepending any url (even # for modal <a> tags) with the baseurlpull/54/head
parent
5e2107cdb8
commit
32fc30a401
|
@ -35,7 +35,7 @@
|
|||
}
|
||||
}
|
||||
$url_param_data_paths = '';
|
||||
$url = empty($action['url']) ? '#' : h($action['url']);
|
||||
$url = empty($action['url']) ? '#' : $baseurl . h($action['url']);
|
||||
if (!empty($action['url_params_data_paths'])) {
|
||||
if (is_array($action['url_params_data_paths'])) {
|
||||
$temp = array();
|
||||
|
@ -90,8 +90,7 @@
|
|||
$action['onclick'] = sprintf('UI.openModalFromURL(\'%s\', \'%s\', \'%s\')', $modal_url, $reload_url, $tableRandomValue);
|
||||
}
|
||||
echo sprintf(
|
||||
'<a href="%s%s" title="%s" aria-label="%s" %s %s class="link-unstyled"><i class="%s"></i></a> ',
|
||||
$baseurl,
|
||||
'<a href="%s" title="%s" aria-label="%s" %s %s class="link-unstyled"><i class="%s"></i></a> ',
|
||||
$url,
|
||||
empty($action['title']) ? '' : h($action['title']),
|
||||
empty($action['title']) ? '' : h($action['title']),
|
||||
|
|
Loading…
Reference in New Issue