More in this section

Forums / Developing with Sitefinity / Issue with hyperlink in custom metafield in news section

Issue with hyperlink in custom metafield in news section

3 posts, 0 answered
  1. Anuj
    Anuj avatar
    13 posts
    12 Dec 2008
    24 Dec 2008
    Link to this post
    We are using Sitefinity v3.5.
    We have implemented the solution "" for converting Text Property to NavigateUrl in ListPageMaster.ascx.
    It has converted HyperLinks with ID="ProjectURL" to be equal to its Text Property of all HyperLinks with ID="ProjectURL".

    Now the URL is


    Previously the URL was like


    the text property i.e
     "<%25%20=%20this.Text%20%25>" has been changed to "".

    But i want to remove "anuj/Sitefinity/ControlTemplates/ArnimaTestimonials/Modes/" and want it to be like "" only. Please provide any solutuion for this.
  2. John
    John avatar
    32 posts
    08 Oct 2008
    26 Dec 2008
    Link to this post
    Hi Anuj,

    Georgi Chokov recently released a ReplaceTool that could alter those URLs and he posted the code and instructions on his blog. Make sure you back up your database first. This tool is powerful! That tool is using the RegEx class, so it can drastically speed up changing those URLs.

  3. Parvan
    Parvan avatar
    151 posts
    24 Sep 2012
    29 Dec 2008
    Link to this post
    Hello Anuj,

    You set Text property to
    NavigateUrl property of the Hyperlink is set to be equal to it.
    The problem is that if the navigation url do not start with protocol name (http:// or https://) url is handled by browsers as it is relative url and is appended to the current page url. There are two solutions:

    1. You can set Text property of the Hyperlink to

    2. Replace old CustomHyperlinkAdapter with newly attached file. Now http:// prefix will be added as prefix to NavigateUrl property if not set from you.

    Hope that this will help you.

    Best wishes,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
3 posts, 0 answered