Get ContentLink from LinkURL

Vote:
 

Is it possibe to get Content Reference having LinkURL: "/link/d77a4466502d41fba3a0f3f472aec0d6.aspx". This is returning type from Url property extanded about Block option. I know that block doesn't have public url so I can't use _urlResorver.GetUrl("linkURL") method, but maybe is any chance to get ContentLink of this shared block? 

#293821
Dec 28, 2022 14:03
Vote:
 

What does this mean "This is returning type from Url property extanded about Block option"? Are you using a Url property to select a block and then want to get the Content Reference to the block? Blocks are not routable, so to select a block you should use a Content Reference property, not  an Url.

To get a block's Content Reference you just cast it to IContent: ((IContent)theBlockData).ContentLink. But if you use a Content Reference property instead, then it's not needed since you already have that value in the property.

#293822
Edited, Dec 28, 2022 15:33
* 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.