SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

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 am using MVC to create SharePoint Provider Hosted App. How to create navigation menu in Share Point Application, for example if i just create hyperlink it doesn't take SPHostUrl and other query string parameters to next page.

share|improve this question
up vote 0 down vote accepted

I'm not seeing how you insert the hyperlink, but in MVC you need to set the needed querystring variables explicitly for a hyperlink. One thing you might do is persist the SPHostUrl into a session or cookie variable, and use that value as a source for the SharePoint token for each next request after the first one, when you do not want to put it on the querystring for each request.

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.