Accessing URL Redirection property in Code

Neelesh Malvi asked on March 5, 2016 11:48

I have a page which is configured in Kentico.I have a html of this Page.

This html contains one href "https://www.ingrammicro.ch/ebs/?action=Redirect&program=HPTC&company=##COMPANY##&branch=##BRANCH##&customer=##RESELLER_ID##&uid=##USER_GUID##&sid=##SID_HASH##".

This href value is mentioned in the URL Redirection property of that page. Page->Properties->Navigation->URL Redirection

I want to replace this href value with the new href. How do i do this in Kentico code? OR How do i access this property programatically so that i can replace its value with new one?

Recent Answers


Jan Hermann answered on March 7, 2016 08:15

Hello,

yes, you simply get a TreeNode as you are used to and update the DocumentMenuRedirectUrl property with a new value.

Best regards,
Jan Hermann

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.