Try our conversational search powered by Generative AI!

using id as key in a querystring



I have reqritten an old application that then have quite alot of external applications that redirects to a specific url containging the ?id={someid} querystring.. however.. episerver seems to do something with the id-key.. since thats never displayed in Request.Querystrings.AllKeys..

So my guess is that epi is doing some kind of url-rewriteing or something.. is there any way to get around this and be able to use the id-key for only a specific page/location?

Nov 15, 2013 10:21

I'm afraid that you will not be able to do this as "id" is used un segmented routing to understand which node to load from the EPiServer content repository. You could try to replace "id" with something different but may involve a huge part of EPiServer routing to be swapped out with your own overrides. I would recommend to find a way to replace your's codebase "id" keyword usage in url as trying to replace it inside an EPiServer.

If you are interested where it's used - it's a ContentRoute guy who gots kick in during request handling and there is a segment handling logic - RouteSegmentContext(SegmentContext segmentContext). Eventually it hits EPiServer.Web.Routing.Segments.NodeSegment type. RouteDataMatch() is method that is invoked and it sets routed content reference based on "id" parameter form the url.

Nov 18, 2013 21:07
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.