mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
refactor: more html_helper with solidus
This commit is contained in:
parent
847b8de9cc
commit
bbf62aafa1
@ -241,11 +241,7 @@ if (! function_exists('link_tag')) {
|
||||
}
|
||||
|
||||
if (! preg_match('#^([a-z]+:)?//#i', $href)) {
|
||||
if ($indexPage === true) {
|
||||
$attributes['href'] = site_url($href);
|
||||
} else {
|
||||
$attributes['href'] = slash_item('baseURL') . $href;
|
||||
}
|
||||
$attributes['href'] = $indexPage ? site_url($href) : slash_item('baseURL') . $href;
|
||||
} else {
|
||||
$attributes['href'] = $href;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user