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

So here is the scenario I have two SP2010 applications http://intranet.mycompany.org and http://my.mycompany.org.

I need to have a link in mysites that will take users back to http://intranet.mycompany.org. I realize I can do this as a static link in navigation but i'd like it to be dynamic as we have a test and production environment.

My question is there a token similair to ~sitecollection or ~site, that I can use within mysites that will give me the url back to the main application url? Also does anyone know of an authoritative list of all available SP replacement tokens?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

So ~sitecollection and ~site work because SharePoint knows what they are; there's no way for SharePoint to know what web application is your "main application". The other issue is that relative links don't work as well against a different web application. You can put a link in to "/", which will go to the root of the current web application, but the only way to redirect to another web application would be to use an absolute URL.

One option you could use would be to configure a portal site connection on the MySites that points back to the root site on the intranet web app.

You could also store a URL in the property bag and use a custom control to create a link that goes back to that URL, but there's no OOTB replacement token that I'm aware of that'll do what you're looking for.

share|improve this answer

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.