summaryrefslogtreecommitdiffstats
path: root/hugolib/page_permalink_test.go
diff options
context:
space:
mode:
authorCameron Moore <moorereason@gmail.com>2018-12-21 02:42:37 -0600
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-12-21 09:42:37 +0100
commit0483299bc06a742d40528e0d675e42e149910853 (patch)
treea6ac869dabe6922216a8d843b2bb931ef31c36c9 /hugolib/page_permalink_test.go
parent27b62a546cd5c49df7424caeabe4af35ddd3bd90 (diff)
hugolib: Improve logic of output path trimming
Fixes #4666
Diffstat (limited to 'hugolib/page_permalink_test.go')
-rw-r--r--hugolib/page_permalink_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/hugolib/page_permalink_test.go b/hugolib/page_permalink_test.go
index 6f899efae..76b0b8635 100644
--- a/hugolib/page_permalink_test.go
+++ b/hugolib/page_permalink_test.go
@@ -55,6 +55,8 @@ func TestPermalink(t *testing.T) {
{"x/y/z/boofar.md", "http://barnew/boo/", "booslug", "", false, false, "http://barnew/boo/x/y/z/booslug/", "/boo/x/y/z/booslug/"},
{"x/y/z/boofar.md", "http://barnew/boo/", "booslug", "", true, true, "http://barnew/boo/x/y/z/booslug.html", "/x/y/z/booslug.html"},
{"x/y/z/boofar.md", "http://barnew/boo", "booslug", "", true, true, "http://barnew/boo/x/y/z/booslug.html", "/x/y/z/booslug.html"},
+ // Issue #4666
+ {"x/y/z/boo-makeindex.md", "http://barnew/boo", "", "", true, true, "http://barnew/boo/x/y/z/boo-makeindex.html", "/x/y/z/boo-makeindex.html"},
// test URL overrides
{"x/y/z/boofar.md", "", "", "/z/y/q/", false, false, "/z/y/q/", "/z/y/q/"},