You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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().
The text was updated successfully, but these errors were encountered:
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().
The text was updated successfully, but these errors were encountered: