SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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, and I have a reference to <% $SPUrl:~sitecollection/its %>, the URL is formatted as 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
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

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

share|improve this answer

Your Answer


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.