After upgrading a site from SharePoint 2007 to SharePoint 2010, we have encountered some problems with the
AssetURLSelector which is a graphical pop-up control for browsing files and lists etc. within the specific site collection.
In SP2007 when selecting a list with this selector, the following URL was returned: /se/top/events/Lists/Eventslist/AllItems.aspx
This is fully compatible with the SharePoint function SPWeb.GetListFromUrl.
In SP2010 when selecting the same list, the AssetURLSelector instead for some strange reason returns the URL on the following format:
Difference 1: The complete URL including domain is returned. This generates errors in our SharePoint solution since the domain differs between for instance authoring and live environments. The relative path is instead needed here as it used
to be in 2007...
Difference 2: The AllItems.aspx is excluded if you make the selection from the tree-view to the left which causes an exception when using the
View Complete Post