From dbb6d02bc7c57e96c86270bc132397a6ea401beb Mon Sep 17 00:00:00 2001 From: ghost Date: Mon, 5 Feb 2024 18:34:14 +0200 Subject: [PATCH] return absolute path in base --- src/server.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/server.php b/src/server.php index 2ded025..6d45b68 100644 --- a/src/server.php +++ b/src/server.php @@ -360,7 +360,11 @@ $server->setHandler( // Define base URL $reader->setMacros( '~URL:base~', - '/' + sprintf( + 'gemini://%s%s/', + $config->gemini->server->host, + $config->gemini->server->port == 1965 ? null : ':' . $config->gemini->server->port + ) ); // Define index menu