This commit is contained in:
Ijor Tengab 2026-03-13 07:05:10 +00:00 committed by GitHub
commit d1352fe46d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,6 +70,9 @@ $root_url = '';
// $_SERVER['HTTP_HOST'].'/folder'
$http_host = $_SERVER['HTTP_HOST'];
// Home URL. Link for Home Button.
$home_url = '?p=';
// input encoding for iconv
$iconv_input_encoding = 'UTF-8';
@ -3715,7 +3718,7 @@ class FM_Config
*/
function fm_show_nav_path($path)
{
global $lang, $sticky_navbar, $editFile;
global $lang, $sticky_navbar, $editFile, $home_url;
$isStickyNavBar = $sticky_navbar ? 'fixed-top' : '';
?>
<nav class="navbar navbar-expand-lg mb-4 main-nav <?php echo $isStickyNavBar ?> bg-body-tertiary" data-bs-theme="<?php echo FM_THEME; ?>">
@ -3727,7 +3730,7 @@ function fm_show_nav_path($path)
<?php
$path = fm_clean_path($path);
$root_url = "<a href='?p='><i class='fa fa-home' aria-hidden='true' title='" . FM_ROOT_PATH . "'></i></a>";
$root_url = "<a href='".$home_url."'><i class='fa fa-home' aria-hidden='true' title='" . FM_ROOT_PATH . "'></i></a>";
$sep = '<i class="bread-crumb"> / </i>';
if ($path != '') {
$exploded = explode('/', $path);