diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-03-01 11:47:16 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-03-01 13:34:05 +0100 |
commit | 7023cf0f07d07bd943404d88d5fc8f3c5f7c9cc2 (patch) | |
tree | dceca2aff42032c251c427c42ded34d2b54ea48b /resources | |
parent | 9dfa9e70e6ac56cfbb875caf5fed412eb2b22d82 (diff) | |
download | hugo-7023cf0f07d07bd943404d88d5fc8f3c5f7c9cc2.tar.gz hugo-7023cf0f07d07bd943404d88d5fc8f3c5f7c9cc2.zip |
Fix resources.GetMatch, resources.Match, and resources.ByType to they don't normalize permalinks
Fixes #12182
Diffstat (limited to 'resources')
-rw-r--r-- | resources/resource_factories/create/create.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/resource_factories/create/create.go b/resources/resource_factories/create/create.go index 0cf84c49b..ac1a2af07 100644 --- a/resources/resource_factories/create/create.go +++ b/resources/resource_factories/create/create.go @@ -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 |