Kooboo / CMS

Old Kooboo CMS, Use Kooboo/Kooboo instead.
http://www.kooboo.com
Other
337 stars 222 forks source link

Feature Request : PageURL support for default/index page #318

Open sbrickey opened 9 years ago

sbrickey commented 9 years ago

I would like to be able to use FrontUrl().PageUrl(...) for my site's default page.

Currently, PageURL only works when the page is valid, or when a path is mapped to a valid page... if the page is invalid, or refers to a page map that isn't assigned an actual page... it returns null.

I want this for several reasons...

my current workaround is to create links using FrontUrl().PageUrl(...).ToHtmlString().Replace("/page/", "/")... this works for links I create, but does not work for built-in helpers such as the Pager().