aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2023-06-01 10:48:03 -0500
committerChristian Cleberg <hello@cleberg.net>2023-06-01 10:48:03 -0500
commit14343865db323804feaef6fb49b6230d2d0aac05 (patch)
tree93c482ffec930a562636045ee3632782aeebde7e
parenta87e0ca4d11601d10b81c30bff23d65be9d1ccd7 (diff)
downloadhn-14343865db323804feaef6fb49b6230d2d0aac05.tar.gz
hn-14343865db323804feaef6fb49b6230d2d0aac05.tar.bz2
hn-14343865db323804feaef6fb49b6230d2d0aac05.zip
fix: incorrect canonical URL for homepage
-rw-r--r--index.php4
1 files 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