PiranhaCMS / piranha.core

Piranha CMS is the friendly editor-focused CMS for .NET that can be used both as an integrated CMS or as a headless API.

Home Page:http://piranhacms.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WebApi can't get subpages via slug

joymon-jacob opened this issue · comments

Trying to fetch page model from slug for a subpage, the slug being page/subpage, how to fetch subpages via slug in WebApi?

Do you have more information, like what was returned from the api, null or an exception. Do you have any application logs?

problem is tat it hits another endpoint this one

[Route("{siteId}/{slug}")]
public virtual async Task GetBySlugAndSite(Guid siteId, string slug)

so the exception that is that the site does not exist
but it is a valid slug but the api will not accept it due to how the endpoints are working