kentico_jurajo
-
3/5/2012 3:10:52 AM
RE:Detecting original alias
Hi,
In the HTTP response there is the URLReferrer available which you can use to detect the previous URL. Then, you can use this method from Kentico's API:
CMS.PortalEngine.PageInfoProvider.GetPageInfoForUrl(string, string, string, bool, bool, out CMS.PortalEngine.PageInfoSource, out string)
However, you need to place it into try-catch otherwise, if the URL is missing, it will throw an error.
Best regards, Juraj Ondrus
|