I am working on an enterprise wiki site collection inside SharePoint server 2013. now I want to add a link to another wiki page inside the same site collection, but I find that there are 3 main ways of doing so as follow:-
- using the [[ ]] appraoch
- edit the wiki page >> Insert >> Link >> from address >> type the full url of the destination page such as
http://servername/sites/siteA/Pages/Page1.aspx
- edit the wiki page >> Insert >> Link >> from sharepoint >> type the full url of the destination page such as
http://servername/sites/siteA/Pages/Page1.aspx
now for me, the three approaches will do the following:-
- they will automatically update their URL in case I change the URL for the destination page. so if i change the URL for the destination page from
page1.aspx
topage2.aspx
then the 3 links will automatically update their URL to matchpage2.aspx
.
now when I edit my wiki page which contains the above 3 links, and I view the Page source (in edit mode) I got the following:-
<p>[[page2|page1]]</p>
<p>
<a href="/sites/siteA/Pages/page2.aspx">test</a></p>
<p>
<a href="/sites/siteA/Pages/page2.aspx">test</a></p>
<p> </p>
also when I am in the view mode, I checked the generated markup for the 3 links and I got the following:-
<p><a class="ms-wikilink" id="0::page2|page1" href="/sites/siteA/Pages/page2.aspx">test</a></p>
<p><a href="/sites/siteA/Pages/page2.aspx">test</a></p>
<p><a href="/sites/siteA/Pages/page2.aspx">test</a></p>
so now I am totally confused if we need to communicate which approach our end-users should follow to link different wiki pages? or at the end the 3 approaches will have the same result, and it is a matter of preferences ??
Thanks