Fix GetPage on section/bundle name overlaps
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 21 May 2020 09:25:00 +0000 (11:25 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 24 May 2020 10:35:45 +0000 (12:35 +0200)
commita985efcecf44afe1d252690ec0a00cf077974f44
tree792e19ede943310f091977edb36962d1eee596f9
parent6c3c6686f5d3c7155e2d455b07ac8ab70f42cb88
Fix GetPage on section/bundle name overlaps

In the internal Radix we stored the directory based nodes without a traling slash, e.g. `/blog`.

The original motivation was probably to make it easy to do prefix searching: Give me all ancestors.

This, however have lead to some ambigouty with overlapping directory names.

This particular problem was, however, not possible to work around in an easy way, so from now we store these as `/blog/`.

Fixes #7301
helpers/path.go
htesting/hqt/checkers.go
hugolib/content_map.go
hugolib/content_map_page.go
hugolib/content_map_test.go
hugolib/page.go
hugolib/page__tree.go
hugolib/pagecollections.go
hugolib/pagecollections_test.go
hugolib/taxonomy_test.go