Fix permalinks issue with repeated sections

Fixes #10377
This commit is contained in:
Bjørn Erik Pedersen
2023-01-17 11:00:38 +01:00
parent 2fb40ece5d
commit 671f64b2eb
3 changed files with 41 additions and 1 deletions

View File

@@ -42,6 +42,7 @@ var testdataPermalinks = []struct {
{"/:2006_01_02_15_04_05.000", true, "/2012_04_06_03_01_59.000"}, // Complicated custom date format
{"/:sections/", true, "/a/b/c/"}, // Sections
{"/:sections[last]/", true, "/c/"}, // Sections
{"/:sections[0]/:sections[last]/", true, "/a/c/"}, // Sections
// Failures
{"/blog/:fred", false, ""},