Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I'm upgrading from SharePoint 2007 to 2010 and the $SPUrl:~sitecollection expression doesn't appear to be working anymore. It replaces ~sitecollection with the current site URL instead of the root URL. For example, if I'm in http://mysite.com/its/itsinternal, and I have a reference to <% $SPUrl:~sitecollection/its %>, the URL is formatted as http://mysite.com/its/itsinternal/its. Is there a configuration somewhere that controls this?

share|improve this question
    
Could it be that "its" is a managed path and "itsinternal" actually is a site collection? –  user17394 Jun 3 '13 at 13:12
add comment

2 Answers

up vote 0 down vote accepted

After working with Microsoft and being unable to get it running the way I want, I've opted to use absolute URLs when I'm trying to reach the top level site collection from a nested site collection.

share|improve this answer
add comment

<%$SPUrl:~SiteCollection/ ...%> seems to be working fine for me in 2010

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.