krz/hn

A brutalist web client for Hacker News.

clone: git clone https://gitbay.org/krz/hn.git

14343865db323804feaef6fb49b6230d2d0aac05

unsigned

author: Christian Cleberg <hello@cleberg.net> · 2023-06-01T15:48:03Z

fix: incorrect canonical URL for homepage
 index.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/index.php b/index.php
index c45312d..c1b628a 100644
--- a/index.php
+++ b/index.php
@@ -10,7 +10,7 @@ if (empty($elements[0])) {
 		'Top'
 	);
 	echo_html(
-		$GLOBALS['full_domain'] . '/top/',
+		$GLOBALS['full_domain'],
 		'The top stories from Hacker News, proxied by hn.',
 		'hn',
 		$html_output
@@ -23,7 +23,7 @@ if (empty($elements[0])) {
 				'Top'
 			);
 			echo_html(
-				$GLOBALS['full_domain'] . '/top/',
+				$GLOBALS['full_domain'],
 				'The top stories from Hacker News, proxied by hn.',
 				'hn',
 				$html_output