CMS icon indicating copy to clipboard operation
CMS copied to clipboard

Feature Request : PageURL support for default/index page

Open sbrickey opened this issue 9 years ago • 0 comments

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...

  • I want users/traffic/links to remain on the homepage... referring to some other page only convolutes the user experience, and any traffic analytics.
  • My homepage may support parameters (not URL routed)... they should continue to work

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().

sbrickey avatar Apr 30 '15 14:04 sbrickey