Display absolute url instead of relative path for CMS List Menu

Shweta S asked on May 18, 2017 00:05

I am using CMS List menu to render the header menu for our site. It currently renders as relative path but it there a way I can render them as absolute url? Or a way I can append some prefix url ?

Correct Answer

Brenden Kehren answered on May 18, 2017 00:08

I'd use a repeater or a universal viewer and you can then wrap your relative url with the URLHelper.GetAbsoluteUrl() method. Using the CMS List Menu webpart you have little to no control over what is rendered. IMHO I'd say you cannot do it with that webpart without customizing the webpart's code.

1 votesVote for this answer Unmark Correct answer

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