This repository was archived by the owner on Dec 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Unable to AddPageRoute to the default page #6338
Comments
It has only just been implemented and will be available in Preview 2. |
@mikebrind I already saw that issue and blog about the Friendly URLs in Razor Pages 😄 , my issue with routing thanks |
@hishamco - you'll need the page name not the path as the first parameter. The |
@pranavkm yep it's my mistake, but even if I used the relative file path without the extension, it doesn't route to the |
pranavkm
added a commit
that referenced
this issue
Jun 19, 2017
pranavkm
added a commit
that referenced
this issue
Jun 19, 2017
pranavkm
added a commit
that referenced
this issue
Jun 20, 2017
* Allow AddPageRoute to route to pages root. Fixes #6338
@hishamco - this is fixed post 2.0.0-preview2. You'll have to use |
Thanks a lot @pranavkm |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Razor Page by default looking for
index.cshtml
, usingAddPageRoute
i'm not able to route tohome.cshtml
using:Perhaps someone may ask why we need to home pages?
1- Assume I don't have
index.cshtml
at all2- Look at CH9 as example, whenever a live event streaming, a new home page shows up instead of the default one
@pranavkm any idea why this not work as expected?!!
The text was updated successfully, but these errors were encountered: