diff --git a/web/app/models/HTML.php b/web/app/models/HTML.php index cb7f1c0..7da6b03 100644 --- a/web/app/models/HTML.php +++ b/web/app/models/HTML.php @@ -88,11 +88,13 @@ class HTML { $param = array_merge($param, $config['params']); } - $url = '//'.UOJConfig::$data['web'][$config['location']]['host']; + $url = ''; // '//'.UOJConfig::$data['web'][$config['location']]['host']; if ($param) { $url .= $path.'?'.HTML::query_string_encode($param); - } else { + } elseif ($path != '/') { $url .= rtrim($path, '/'); + } else { + $url .= $path; } return HTML::escape($url); } diff --git a/web/app/views/page-header.php b/web/app/views/page-header.php index 738204a..f29690a 100644 --- a/web/app/views/page-header.php +++ b/web/app/views/page-header.php @@ -39,7 +39,7 @@