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