Try our conversational search powered by Generative AI!

Converting PageReference to Url sets page id as URL


Hi, I had a block type with PageReference as property type. Now, I've changed the property definition to:

            GroupName = SystemTabNames.Content,
            Order = 100,
            Name = "Link")]
        public virtual Url LinkUrl { get; set; }

Now, the value for fields that were set prior to this change is now, for example, 75 (in plain text) -> So the URL on start page is localhost:12354/75.

Now, should I always fetch the page from contentloader and get the proper URL (if I am having a number as URL) or there is a better way since this is not really a solution as 75 is set to external link and the editor will not be able to make use of the link editor.


Apr 07, 2014 10:32

I'd say write a batch routine that converts to the value better suited for the new property.

May 02, 2014 11:50
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.