Try our conversational search powered by Generative AI!

determine whether a link is internal or extelnal link



Is there a way to determine whether a pageLink is internal or external by using the pageData.pageLink?


I have a page (parent)  with subpages and want to determine the subpages link type to be able to treat them differently, can i do this by using the pageData.pageLink from the parent page?

Apr 08, 2011 13:56


If I understand correctly the information you are looking for is in the LinkType property of the PageData object. If you have the parent page you will need to load the PageData for each child in order to determine if it's an internal or external link.


Per Gunsarfs
EPiServer Development Team

Apr 08, 2011 16:44

Thank you!

Apr 12, 2011 10:45
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.