Custom URLs

Handle page URLs from code

PathInfo

C1 CMS allows you to append additional information to a page URL - PathInfo - and use it in your code.

To use the path info you should register its use by calling this static method from your code:

Sample:

Composite.Core.Routing.Pages.C1PageRoute.RegisterPathInfoUsage();

This will tell C1 CMS that the extra path info on the URL is valid and prevent a HTTP Error 404.

You can use the GetPathInfo method to get the PathInfo from the page URL:

string thePathInfo = Composite.Core.Routing.Pages.C1PageRoute.GetPageInfo();

(See also URL Configuration / PathInfo.)