0

Is it possible to modify the v4.master in SharePoint 2010 Designer to another URL as "~site"? I wanna change the titel link URL to my Homepage URL. Here is the code from the v4.master page:

 <td class="s4-titletext">
  <h1 name="onetidProjectPropertyTitle">
      <SharePoint:SPLinkButton runat="server" NavigateUrl="~site/" 
         id="onetidProjectPropertyTitle"><SharePoint:ProjectProperty Property="Title" 
         runat="server" /></SharePoint:SPLinkButton>
    </asp:ContentPlaceHolder>
  </h1>

If it's not possible to change the URL by using the SharePoint Designer, is it possible with some code (javascript)?

2
  • I dind't understand your question. Do you need to change the title of your URL or modify the Navigation URL? These are different things. Can you explain better please? Commented Oct 14, 2013 at 7:21
  • Sorry for being so complicated. I wanna change the Navigation URL.
    – Tiac
    Commented Oct 14, 2013 at 7:43

1 Answer 1

3

In the property NavigateUrl, change ~site to ~sitecollection for it to always link to your homepage URL.

6
  • I tried and saved your solution, but nothing happened. If i click on the Site title it doesn't "jump" to my Homepage. I don't know why it won't work.
    – Tiac
    Commented Oct 14, 2013 at 7:44
  • @Tiac Does your NavigateUrl property look like this NavigateUrl="~sitecollection/"?
    – user2536
    Commented Oct 14, 2013 at 7:53
  • Yes. After showing up your solution i changed my code into that: NavigateUrl="~sitecollection/"
    – Tiac
    Commented Oct 14, 2013 at 7:59
  • Do i have to change the URL only in v4.master or do i have to change it in minimal.master or default.master? I don't know the differences of this page, so i only changed the v4.master.
    – Tiac
    Commented Oct 14, 2013 at 8:34
  • @Tiac You have to make this change in the Masterpage you use as your main masterpage.
    – user2536
    Commented Oct 14, 2013 at 8:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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