Skip to content
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

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

Open
sbrickey opened this issue Apr 30, 2015 · 0 comments
Open

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

sbrickey opened this issue Apr 30, 2015 · 0 comments

Comments

@sbrickey
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant