From 7a80de5ce1bedbf52a1a86afa4dd16dd9298f321 Mon Sep 17 00:00:00 2001 From: Amit Upadhyay Date: Mon, 16 May 2022 17:33:44 +0530 Subject: [PATCH] only remove `/` from front if `--base` is not `/` --- sitemap.ftd | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sitemap.ftd b/sitemap.ftd index 345bc5f08..a4ff03d64 100644 --- a/sitemap.ftd +++ b/sitemap.ftd @@ -40,10 +40,11 @@ url: whatever -- ds.markdown: -Note: The URLs in sitemap start with slash, but we remove the first slash. We do -this because some projects may deploy FPM package on a base URL eg, `foo.com/bar/`, -so all reference to /x/ is actually a reference to `foo.com/bar/x/`. We also -convert `/` to `index.html` for the same reason. +Note: The URLs in sitemap start with slash, but we remove the first slash if +`--base` is not equal to `/`. We support `--base` because some projects may +deploy FPM package on a base URL eg, `foo.com/bar/`, so all reference to `/x/` +is actually a reference to `foo.com/bar/x/`. In this case we also convert `/` +to `index.html`. -- ft.h1: Sitemap `$processor$`