New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.Resources.GetByPrefix not working for Page Resources of type "page" #4264

Closed
regisphilibert opened this Issue Jan 12, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@regisphilibert

regisphilibert commented Jan 12, 2018

It appears the .RelPermalink end .Permalink property of page resources of type "page" are empty.
This breaks the .GetByPrefix method which relies on it.
This makes it impossible to get a page resources by its prefix. It can be useful when wanting to list only

.
└── content
    └── post
        └── that-new-post
            ├── index.md
            └── credits.md

.Resources.GetByPrefix "credits" returns "nil"

Maybe GetByPrefix could test on the path rather than the permalink?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment