From 9509bb9429360dab752b455032704195a2937683 Mon Sep 17 00:00:00 2001 From: Solderpunk Date: Wed, 18 Mar 2020 19:01:32 +0100 Subject: Format entry links correctly when --directory is used. --- gemfeed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gemfeed.py b/gemfeed.py index 23dc007..adf77cc 100644 --- a/gemfeed.py +++ b/gemfeed.py @@ -89,7 +89,7 @@ def populate_entry_from_file(filename, base_url, entry): FeedGenerator entry object according the contents of the named Gemini file and the base URL. """ - url = urljoin(base_url, filename) + url = urljoin(base_url, os.path.basename(filename)) entry.guid(url) entry.link(href=url, rel="alternate") updated = os.path.getctime(filename) -- cgit v1.2.3-54-g00ecf