all repos — homestead @ 6386b67a8d0c754efb814dce176312b2a05e909e

Code for my website

add redirect for index.xml

Alan Pearce
commit

6386b67a8d0c754efb814dce176312b2a05e909e

parent

94ab2542bf5e78ac51377e69632f32ba83bc53a8

1 file changed, 2 insertions(+), 0 deletions(-)

jump to
M internal/storage/sqlite/reader.gointernal/storage/sqlite/reader.go
@@ -109,6 +109,8 @@ cPath = path
switch { case path == "/": differs = false + case strings.HasSuffix(path, "/index.xml"): + cPath, differs = strings.TrimSuffix(path, "index.xml")+"atom.xml", true case strings.HasSuffix(path, "/index.html"): cPath, differs = strings.CutSuffix(path, "index.html") case !strings.HasSuffix(path, "/"):