Questions tagged [custom-route]

All questions related to custom routing including route registration, pipeline configuration and execution.

Filter by
Sorted by
Tagged with
0
votes
0answers
64 views

Getting exception for Sitecore custom API calls

I'm working on an SXA Project with to different code base one with SXA Commerce and other with SXA without commerce integration. The commerce site is gone to production before 4 months and we started ...
0
votes
1answer
100 views

Sitecore 9.2 custom route api/<controller> is throwing null error

I have a requirement, When clicking the close I need to destroy the user session. For this, I have created an ajax call to destroy the session. For calling controller with the Sitecore context, I ...
1
vote
1answer
334 views

Adding sitemap.xml custom route causes EnsureLoggedInForPreview.Process

I am adding a sitemap to my site. I created a custom route and am adding it in a pipeline processor. When I brows to the page I get the following error: Object reference not set to an instance of an ...
2
votes
1answer
301 views

Requested document not found when using MVC routes

I am getting 404s (requested document not found) when I try to use a custom route I created per the guide here: https://kb.sitecore.net/articles/700677. My patch config is showing up in showconfig, ...
0
votes
1answer
4k views

Sitecore WebApi custom route not working controller not found

Controller: public class ExampleController : Controller { private readonly ISitecoreContext _sitecoreContext; public ExampleController () { } [System.Web.Http.HttpGet] ...
5
votes
1answer
434 views

How to set default controller for an area

I'm creating utility pages and the structure of the code files is as below: /Areas/MyTools/Controllers/UpdateField /Areas/MyTools/Views/UpdateField/Index.cshtml When I browse http://mysite/...
0
votes
0answers
692 views

Custom routes never matched in Sitecore request execution

I followed the steps below to define custom ASP.NET MVC routes. Created a custom processor for the initialize pipeline and defined custom route in the Process method similar to the following: public ...