Why my routes in Sitecore 9 doesn't work?
up vote
0
down vote
favorite
Trying to apply custom routing in Sitecore 9 using following documentation:
https://doc.sitecore.net/sitecore_experience_platform/developing/developing_with_sitecore/mvc/use_mvc_routing.
But no luck, ends up on 404 page. Seems like route is registered, but something is wrong with parameters:
public static void RegisterRoutes(RouteCollection routes)
{
routes.MapRoute(
name: "Product",
url: "product-offering/{category}/{product}",
defaults: new { scItemPath = "product-offering/{product}", scKeysToIgnore = new string { "category" } });
}
Perhaps someone faced with this issue in Sitecore 9, because this piece of code works for Sitecore 8.2.
model-view-controller sitecore
add a comment |
up vote
0
down vote
favorite
Trying to apply custom routing in Sitecore 9 using following documentation:
https://doc.sitecore.net/sitecore_experience_platform/developing/developing_with_sitecore/mvc/use_mvc_routing.
But no luck, ends up on 404 page. Seems like route is registered, but something is wrong with parameters:
public static void RegisterRoutes(RouteCollection routes)
{
routes.MapRoute(
name: "Product",
url: "product-offering/{category}/{product}",
defaults: new { scItemPath = "product-offering/{product}", scKeysToIgnore = new string { "category" } });
}
Perhaps someone faced with this issue in Sitecore 9, because this piece of code works for Sitecore 8.2.
model-view-controller sitecore
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Trying to apply custom routing in Sitecore 9 using following documentation:
https://doc.sitecore.net/sitecore_experience_platform/developing/developing_with_sitecore/mvc/use_mvc_routing.
But no luck, ends up on 404 page. Seems like route is registered, but something is wrong with parameters:
public static void RegisterRoutes(RouteCollection routes)
{
routes.MapRoute(
name: "Product",
url: "product-offering/{category}/{product}",
defaults: new { scItemPath = "product-offering/{product}", scKeysToIgnore = new string { "category" } });
}
Perhaps someone faced with this issue in Sitecore 9, because this piece of code works for Sitecore 8.2.
model-view-controller sitecore
Trying to apply custom routing in Sitecore 9 using following documentation:
https://doc.sitecore.net/sitecore_experience_platform/developing/developing_with_sitecore/mvc/use_mvc_routing.
But no luck, ends up on 404 page. Seems like route is registered, but something is wrong with parameters:
public static void RegisterRoutes(RouteCollection routes)
{
routes.MapRoute(
name: "Product",
url: "product-offering/{category}/{product}",
defaults: new { scItemPath = "product-offering/{product}", scKeysToIgnore = new string { "category" } });
}
Perhaps someone faced with this issue in Sitecore 9, because this piece of code works for Sitecore 8.2.
model-view-controller sitecore
model-view-controller sitecore
asked Nov 19 at 15:05
Shmulinzon
11
11
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
-1
down vote
In Sitecore, there is no use of visual studio route.config file , because in sitecore all routes are define in terms of pipeline in web.config in Views folder.
Hope this answer will help you.
New contributor
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
-1
down vote
In Sitecore, there is no use of visual studio route.config file , because in sitecore all routes are define in terms of pipeline in web.config in Views folder.
Hope this answer will help you.
New contributor
add a comment |
up vote
-1
down vote
In Sitecore, there is no use of visual studio route.config file , because in sitecore all routes are define in terms of pipeline in web.config in Views folder.
Hope this answer will help you.
New contributor
add a comment |
up vote
-1
down vote
up vote
-1
down vote
In Sitecore, there is no use of visual studio route.config file , because in sitecore all routes are define in terms of pipeline in web.config in Views folder.
Hope this answer will help you.
New contributor
In Sitecore, there is no use of visual studio route.config file , because in sitecore all routes are define in terms of pipeline in web.config in Views folder.
Hope this answer will help you.
New contributor
New contributor
answered Nov 20 at 12:06
Akash Mishra
11
11
New contributor
New contributor
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53377420%2fwhy-my-routes-in-sitecore-9-doesnt-work%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown