refactor: more html_helper with solidus

This commit is contained in:
ddevsr 2022-10-31 10:55:51 +07:00 committed by Denny Septian Panggabean
parent 847b8de9cc
commit bbf62aafa1
No known key found for this signature in database
GPG Key ID: 73E560439FD2054F

View File

@ -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;
}