Fix paths with dots issue with content adapters

Fixes #12493
This commit is contained in:
Bjørn Erik Pedersen
2024-05-15 11:48:34 +02:00
parent 32c967551b
commit 1aacfced39
3 changed files with 31 additions and 9 deletions

View File

@@ -62,7 +62,8 @@ func (h *HugoSites) newPage(m *pageMeta) (*pageState, *paths.Path, error) {
if pcfg.Path != "" {
s := m.pageConfig.Path
if !paths.HasExt(s) {
// Paths from content adapters should never have any extension.
if pcfg.IsFromContentAdapter || !paths.HasExt(s) {
var (
isBranch bool
isBranchSet bool