diff --git a/web/app/models/HTML.php b/web/app/models/HTML.php index 8c50e95..e1d7dd7 100644 --- a/web/app/models/HTML.php +++ b/web/app/models/HTML.php @@ -97,8 +97,10 @@ class HTML { // } if ($param) { $url .= $path.'?'.HTML::query_string_encode($param); - } else if ($url != '/') { + } else if ($path != '/') { $url .= rtrim($path, '/'); + } else { + $url = $path; } return HTML::escape($url); } diff --git a/web/app/views/main-nav.php b/web/app/views/main-nav.php index 65d8b68..c51f7fa 100644 --- a/web/app/views/main-nav.php +++ b/web/app/views/main-nav.php @@ -1,5 +1,5 @@