diff options
Diffstat (limited to 'resources/page/page_matcher.go')
-rw-r--r-- | resources/page/page_matcher.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/resources/page/page_matcher.go b/resources/page/page_matcher.go index 8e81f810d..0c4c2d0e2 100644 --- a/resources/page/page_matcher.go +++ b/resources/page/page_matcher.go @@ -59,7 +59,7 @@ func (m PageMatcher) Matches(p Page) bool { if m.Path != "" { g, err := glob.GetGlob(m.Path) // TODO(bep) Path() vs filepath vs leading slash. - p := strings.ToLower(filepath.ToSlash(p.Path())) + p := strings.ToLower(filepath.ToSlash(p.Pathc())) if !(strings.HasPrefix(p, "/")) { p = "/" + p } @@ -104,7 +104,6 @@ func DecodeCascade(in interface{}) (map[PageMatcher]maps.Params, error) { } return cascade, nil - } // DecodePageMatcher decodes m into v. |