mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
Fix resources.GetMatch, resources.Match, and resources.ByType to they don't normalize permalinks
Fixes #12182
This commit is contained in:
@@ -134,7 +134,7 @@ func (c *Client) match(name, pattern string, matchFunc func(r resource.Resource)
|
||||
return meta.Open()
|
||||
},
|
||||
GroupIdentity: meta.PathInfo,
|
||||
TargetPath: meta.PathInfo.PathNoLang(),
|
||||
TargetPath: meta.PathInfo.Unnormalized().Path(),
|
||||
})
|
||||
if err != nil {
|
||||
return true, err
|
||||
|
Reference in New Issue
Block a user