Sharepoint 2013 Wiki Page - Links in content rewritten to relative urls

We have an issue where on all SharePoint 2013 wiki pages any URL to items within the site containing the wiki page are rewritten to be relative URLs. This causes a huge problem when we surface these pages and a snippet of their content through a search web
part because the links fail being relative to the wiki page itself. To further illustrated with an example.
A site collection root page http://www.sp2013.com/default.aspx contains a search results web part returning all wiki pages in the site collection. There is a custom display template that renders
the linked title of the wiki page and the first 500 characters of formatted text (html) of the wiki page.
A wiki page is created in a sub site (sub1) called wiki1 (http://www.sp2013.com/sub1/pages/wiki1.aspx) the text of the page contains:
"Check out our new library: Document Library"
Document Library is a hyperlink to (http://www.sp2013.com/sub1/Document%20Library/Forms/AllItems.aspx)
Upon saving the wiki page the link is reformatted to be /Document%20Library/Forms/AllItems.aspx
From the rollup web part at http://www.sp2013.com/default.aspx the relative url in the snippet text of the display template evaluates to
http://www.sp2013.com/Document%20Library/Forms/AllItems.aspx which does not exist.
I have attempted modifying the source of the wiki page as well as the link in the ribbon however upon save of the changes the link is always modified to be relative. Any assistance is appreciated as this is extremely frustrating. Thank you.

Hi JonesEJ,
According to your description, my understanding is that SharePoint converts a absolute URL to
 a relative URL when you save the wiki pages containing the URL.
This is actually the preferred behavior in SharePoint and on the web in general. SharePoint saves all absolute URLs for the wiki content as relative. It only does this if the URL matches the URL for the web application for that current wiki
site.
There is no OOB way to change the relative URL back to the absolute URL. For your issue, you can try to use
SPSite.MakeFullUrl() to convert it back.
There is a similar post for your reference:
http://sharepoint.stackexchange.com/questions/62887/absolute-urls-converted-to-relative-urls-when-saving-item
Best Regards,
Wendy
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Wendy Li
TechNet Community Support

Similar Messages

  • Printing SharePoint 2013 Wiki Page Library as a whole

    Hi!  I'm trying to find a good solution for printing an entire SharePoint 2013 Wiki page library.  In SharePoint 2010 I built a site and created a printer friendly view that used "Wiki Content" column that only printed the contents
    of the wiki pages as a whole using the solution from this link:
    https://mail.americredit.com/owa/redir.aspx?C=Wl_sVZBaUUqYaSN9F2Qq6Mc3RL-ZwtEIzEWL5ULgM7U6Hr1eoqsoq26BC3E89ofm2Liksb54EjM.&URL=http%3a%2f%2fwww.eblogin.com%2feblogin%2fpost%2f2011%2f11%2f24%2fsharepoint-wikiPagePrint.aspx%23.VDVWdPldVBc
    It was very easy to do and my client loved it.  However, now that we are starting to migrate over to SharePoint 2013 I don't see the same column option and I haven't been able to create a printable view like the one above.  Is there a way
    to do this in 2013 like what was available in 2010? 

    Hi Jeremy,
    That link take me through to an Exchange Login.  Can you provide another link for the solution you've used.
    An older solution that sounds familiar is in this thread.  It's for an older version of SharePoint but should still work
    https://social.technet.microsoft.com/forums/sharepoint/en-US/1612dfdb-f85c-4e6f-90f4-3d6c24b6472c/how-do-you-print-a-sharepoint-wiki
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Page Title Option in SharePoint 2013 Wiki Page.

    In SharePoint 2013, How can I add title to the page that is created under Site Pages library, out of the box I don’t see any option to add title under “Edit Properties section” , please find the attached screenshot.
    I am trying to navigate to the
    /_catalogs/masterpage
    by opening site in SharePoint designer but I don’t find the test1.aspx page.
    Thanks, Ram Ch

    Hi Ram,
    Based on your description, my understanding is that you want to add Title to a wiki page from Site Pages library in SharePoint 2013.
    By default, when we edit a wiki page’s properties, the Title is not displaying. If you want to change the Title of a wiki page, you can modify the current view and add the Title into the view, then use “Quick Edit” to change the Title.
    If you want to add the Title property into a wiki page, you can do via SharePoint Designer 2013.
    The steps are:
    Open your site with SharePoint Designer 2013.
    Click “Site Pages” from the left panel, then click the page that you used and click “Edit file”.
    Find the content place holder with ID “PlaceHolderPageTitle”, then add the following code into the below of the content place holder.
    <asp:Content ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
            <SharePoint:ListItemProperty Property="Title" runat="server"/>
    </asp:Content>
    The result looks like:
    Note: when you edit the page in SharePoint Deisgner 2013, make sure it is in Advanced Mode.
    Best Regards,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • Sharepoint 2013 WIKI change new page content

    After surfing throught a lot of tutorials talking about how to create content templates, Master Templates and everything else in Older versions of Sharepoint, I can't modify the default content on a new Entreprise Wiki page. All I want is
    when someone create a new page the Template text come!
    Why you make it so dificult? Why not a Simple button "Make this new Page Template".
    Please tell me if it's possible where can I edit the default Blank text for new Wiki Pages.

    If someone is struggling with the Templates like me, you can workaround it using Reusable Content.
    Edit Wiki Page -> Insert -> Reusable Content -> More Choices -> Open List -> New Item / Edit Items
    You can create Templates here for detailed Wiki parts .
    Be carefull when creating new Content, there is a option for read only / editable Content.

  • Sharepoint 2013 - Search for link names on a single page

    Hi
    I am messing around with SP13 and trying to get my search result web part to only search for link names and display all results.
    I have created the search source to point at the sub site. If I search for part of a link name it will list all links in one long row as a single result.
    Example: One single page contains all links. Each link points to a .aspx page. The search source is pointing at this page and it can display results but only as a single result containing all links as one line of text.
    Say I have 1000+ links of which 50 has names such as Link1-Item1-Basket1, Link1-Item1-Basket2 up to Link1-Item1-Basket50.
    When I search for Link1-Item1 I would like my search results to display 50 results as 50 individual links.
    Is this possible?

    Hi,
    Yes, you can format the search results as you expected.  But you have to create a custom display template to format your results such as extract the links from each results and display it as separate link.
    Once display template created you have to map the display template to your search results web part.
    Please refer to the following articles.
    SharePoint 2013 Customize Display Template for Content By Search Web
    Part (CSWP) Part-1
    Introduction to SharePoint 2013 Display Templates
    Display Template Overview
    Please mark it answered, if your problem resolved.

  • Cannot view SharePoint 2013 WebPart Page in Html iframe

    I would like to use html iframe for display sharepoint 2013 webpage page , it return following error :
    "This content cannot be displayed in a frame"
    Here is my code:
    <iframe width="100%" src="http://xxxx-dev-int:6346/Test/SitePages/wpSPFolderControl.aspx"> </iframe>
    i try to follow
    http://blogs.msdn.com/b/officeapps/archive/2012/12/12/iframing-sharepoint-hosted-pages-in-apps.aspx , but another error message shown
    "The Visible property cannot be set on Web Part 'g_5bf75035_be44_437a_8752_6360297f3f13'.  It can only be set on a standalone Web Part."
    The webpart page is correct , that can browse directly.
    Working environment:
    - SharePoint 2013
    - Windows Server 2012
    - Visual Studio Professional 2012
    - .Net framework 3.5
    Thanks for your help

    TRY
    <WebPartPages:AllowFraming ID="AllowFraming1" runat="server" />
    http://msdn.microsoft.com/en-us/library/office/fp179921(v=office.15).aspx
    http://blogs.msdn.com/b/officeapps/archive/2012/12/12/iframing-sharepoint-hosted-pages-in-apps.aspx
    or
    http://social.msdn.microsoft.com/Forums/en-US/fa6abb31-7251-4744-ab14-634cde38a42d/error-when-viewing-apps-that-utilize-webparts-this-content-cannot-be-displayed-in-a-frame?forum=appsforsharepoint
    <WebPartPages:AllowFramingID="AllowFraming1"runat="server"/>

  • URL rewrite now working for SharePoint 2013 result page

    Hi,
    I have configured reverse proxy using URL Rewrite (ARR), all works fine but the rule is not processing for SharePoint 2013 result page. It still shows internal domain name and not external domain name.
    this is my web.config in internet web server
    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <rewrite>
                <outboundRules>
                    <rule name="ReverseProxyOutboundRule1" preCondition="ResponseIsHtml1">
                        <match filterByTags="A, Area, Base, Form, Frame, Head, IFrame, Img, Input, Link, Script" pattern="^http(s)?://dsplsp2013/(.*)" />
                        <action type="Rewrite" value="http{R:1}://uncep/{R:2}" />
                    </rule>
                    <preConditions>
                        <preCondition name="ResponseIsHtml1">
                            <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
                        </preCondition>
                    </preConditions>
                </outboundRules>
                <rules>
                    <rule name="ReverseProxyInboundRule1" stopProcessing="true">
                        <match url="(.*)" />
                        <action type="Rewrite" url="http://dsplsp2013/{R:1}" />
                        <serverVariables>
                            <set name="HTTP_ACCEPT_ENCODING" value="" />
                        </serverVariables>
                    </rule>
                </rules>
            </rewrite>
            <urlCompression doStaticCompression="false" />
        </system.webServer>
    </configuration>
    Thanks
    Hari
    Hari

    Hi,
    According to your post, my understanding is that the rule was not processing for SharePoint 2013 result page.
    Please make sure you add the reverse rewriting rule correctly.
    For more information, you can refer to:
    Add the reverse rewriting rules (in the HTML)
    Setting up a Reverse Proxy using IIS, URL Rewrite and ARR
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • SharePoint 2013 Default page issue

    Hi
    We have weird issue with SharePoint 2013 welcome page.  When I browse
    www.mydomain.com its working just fine I don’t see /pages/default.aspx however when I browse without www ex: mydomain.com its taking me to mydomain.com/pages/default.aspx even though we configured managed meta data friendly
    Url’s
    I’ll appreciate your help with this regards.
    Thank you

    Are you sure that both urls are registred as alternative mappings? What is default alternative maping for this web-application?

  • SharePoint Foundation 2013 - Wiki Page Template

    Hi there,
    is there a way to have templates for Wiki pages with SharePoint 2013 Foundation? We have a specific layout and want to have it on every new wiki page.
    Thank you!

    Hi 
    pls check this
    http://mosshowto.blogspot.in/2011/11/custom-template-wiki-foundation_01.html
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/ae453550-8503-4531-b4cf-50a4d157e36c/is-it-possible-to-create-wiki-page-templates-with-sharepoint-2010-foundation?forum=sharepointcustomizationprevious
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • SharePoint 2013 Foundation Top Link Bar wrong selected page when no navigation match

    Hello,
    I've got the following issue.
    At one of my clients we are working on a public web site based on SharePoint 2013 Foundation (yes I know... Foundation...). I've branded the Top Nav Bar and ran into a problem.
    When I navigate to one of the pages in the Top Link Bar the selected item is marked as "Selected", great! But when I navigate to one of the pages that is not added in the Top Link Bar the first item is marked as "Selected", not so great.
    For example when I navigate to /Pages/About.aspx the first item /Pages/Home.aspx is selected.
    Can you help me out?

    Hi,
    Could you give me more detailed information about this issue?
    Could you give me a Screenshot about this issue?
    In addition, there is an articles about customizing the top link bar, please have a look at:
    http://msdn.microsoft.com/en-us/library/office/gg252669(v=office.14).aspx
    http://msdn.microsoft.com/en-us/library/office/gg277254(v=office.14).aspx
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Sharepoint 2013 master page branding for public site

    We have created one SharePoint 2013 public site in office 365.
    We create a custom master page for entire site.when i am login with particular user then its fine.but for anonymous user publishing page design and content not properly view.
    please provide me proper solution for publishing page layout that works with anonymous user.

    You should be able to configure this within the library settings of the master page library as below.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • How to make SharePoint 2013 search only in document content?

    We are using SharePoint 2013 environment and are facing following issue while doing search in the document library.
     There is  one document library named “MYDOC” .and it has two columns name ‘DocTitle’ and ‘DocTag’.. Although we are able to perform search on basis of document metadata and content, however we only want to search through the content of documents
    in the library and not on the basis of document metadata (like ‘DocTitle’ or ‘DocTag’ columns). Is there a way to restrict search to document content only and not metadata?
    Excluding the column name will not help since, if the searched keyword is exists in metadata as well then that item of library will not come in result. Is there any way of writing query in such a way that only document content will get queried?
    -Aditya

    Addition to the above,
    Show or hide content from lists or libraries in search results
    As a site owner, you can decide whether items in lists and libraries on your site are included in search results. By default every list and library is set to include all items in search results.
     Note    To change this setting, you must have the Manage Lists permission level. The Designer and “Site Name” Owner groups contain this permission level. When you do not have Manage Lists permissions, the menus
    described in this procedure are not available.
    Navigate to the site that contains the list or library that you want to change.
    Locate and click the list or library you want to customize.
    Click Site Actions, and then click Site Settings.
    Under Site Administration, click Site Libraries and lists.
    Click an item from the list, for example, Customize “Shared Documents.”
    On the List Settings page, under General Settings, click
    Advanced settings.
    In the Search section, under Allow items from this document library to appear in search results, select
    Yes to include all of the items in the list or library in search result or
    No to exclude all items from search results.
    http://office.microsoft.com/en-in/sharepoint-server-help/enable-content-to-be-searchable-HA010379092.aspx

  • How to hide username in comments section of sharepoint 2013 blog page

    I have a blog page in SharePoint 2013. In that, in the comments section, i have to hide the username of the person who posted the comment.
    I also have to hide it from the page source, hence i cannot use css. Please suggest some solution,if possible using xslt.

    Open the blog.xsl file which is located in "/_layouts/XSL/blog.xsl"
    For safe side take the back up of blog.xsl file and open it and find the below div
    <div class="ms-PostFooter">
    <!-- For the author field, render it using the span style and preceed it with the word "by"-->
    <span class="ms-postfootercolor"><xsl:value-of select="$thisNode/../@resource.wss.ByPrefix"/></span><xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text><xsl:call-template name="RenderAuthor"/>
    <xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text><span class="ms-postfootercolor"><xsl:value-of select="$thisNode/../@resource.wss.blog_postfooter_at"/><xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text>
    <xsl:choose>
    <xsl:when test="$ContainerId"><xsl:text disable-output-escaping="yes">&lt;#= spMgr.RenderFieldByName("PublishedDate", listItem, listSchema) #&gt;</xsl:text></xsl:when>
    <xsl:otherwise><xsl:value-of select="@PublishedDate" disable-output-escaping="yes"/></xsl:otherwise>
    </xsl:choose></span>
    <div>
    In the above div remove the span tag
    <!-- For the author field, render it using the span style and preceed it with the word "by"-->
    <span class="ms-postfootercolor"><xsl:value-of select="$thisNode/../@resource.wss.ByPrefix"/></span><xsl:text disable-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text><xsl:call-template name="RenderAuthor"/>
    If you any help please let me know

  • Convert a sharepoint 2007 master page to a Sharepoint 2013 master page

    Dear friends,
                     I'm doing migration from SharePoint 2007 to SharePoint 2013. I was able to migrate the databases and deployed the customisations to new SP2013 environment. Can
    you please advice me which approch should I follow when migrating the master page? Does anyone have experience ?
    Thanks,
    Dilip

    Hi Dilip,
    There is no easy way to migrate SharePoint 2007 master page to SharePoint 2013.
    SharePoint 2013 use new CSS Style and theme. When you migrate to SharePoint 2013, the master page will be set to use the default master page in SharePoint 2013. To support the new UI in SharePoint 2013, changes have been made to the default master pages.
    For this reason, you cannot apply a master page created in SharePoint 2007 to a site in SharePoint 2013.
    Here is a similar thread for your reference:
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/b4947250-a447-430c-b374-a9777c4d4cbb/migration-of-master-pages-from-sp2010-to-2013?forum=sharepointdevelopment
    Here is a detailed article explain possible branding issue for SharePoint 2013 migration:
    http://office.microsoft.com/en-au/office365-sharepoint-online-enterprise-help/branding-issues-that-may-occur-when-upgrading-to-sharepoint-2013-HA104052656.aspx
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • Integrating OneNote with Sharepoint 2013 - Custom document template, Change Content type, Checkout settings

    My client is migrating to SharePoint 2013 and the team uses OneNote Task list to track the project checklist. While I am successful extending the document template to support OneNote, still have some mysteries to solve as listed below:
    I am exploring Sharepoint 2013 and have tried to explain my problem clearly. If the information provided below is not clear enoug, let me know.
    1. Client has defined custom content type for all the documents in a library. I noticed OneNote comes with a Content type as "Folder". Is it possible to edit / modify the OneNote metadata to accommodate the predefined content types?
    2. In a library, I would like to defined multiple OneNote templates - Meeting, Task List, etc. I followed this article to create OneNote template for a library. Is is possible to edit the template and have "Meeting template" as default?
    3. A library can have multiple document types - word, excel, presentation, OneNote. In order for OneNote sync to work, below settings are mandatory (correct me if wrong):
            a. Checkout required should be set to "No"
            b. No versioning should be set
    My client's governance rule states "Checkout" is mandatory. How can I have a library to support OneNote with Checkout option enabled.
    Thanks in advance!

    Hi TMUser,
    regarding your questions:
    1. One note is based on folder not content type, so by design it is different items. but i heard you can have a look up for this, you may try to change my onenote notebook folder content type so that it allows for additional metadata columns. this way, the
    onenone notebook can be handled just like other office documents. for more detail you may try from this example: http://www.sharepointcowbell.com/2013/01/onenote-and-metadata-in-sharepointpart.html
    2. for onenote products, you may ask at onenote forum for more detail, http://support.microsoft.com/ask-community/office/onenote-2013/,
    we can help for general discussion regarding this. you may take a look at this article, it mentioned about set template as default: http://blogs.msdn.com/b/onenotetips/archive/2008/05/21/templates-in-onenote.aspx
    3. for this question, you may check this kb, http://support.microsoft.com/kb/2675731/en-us, i
    think it is by design, because onenote and other office are different, onenote is use shared, if we put checked out, then it will be set the limitation to only exclusive user.
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

Maybe you are looking for

  • How can I solve issues with moving mail to different folders?

    I am not able to move certain files from one folder to another? I get a pop up that says, "unable to move message" and right underneath that it says, "the message could not be moved to the mailbox inbox". It will not allow me to move anything in that

  • SQL Statement in Webi 3.x and Webi 4.x

    Hello experts, I am facing with a problem regarding an SQL Statement written in Query Panel as a Custom SQL. The bellow statement is executed in Webi 3.x but not in Webi 4.x.. Webi 4.x does not recognize the statement from line 4 (SELECT within a SEL

  • How are AppTabs diff. than the Prism add-on?

    hi. i love my 3.6 but am being forced into 6 ''(&whatever is next wks v.)''; so im evaluating all the add-ons/plug-ins/etc... my question is in the title-pros/cons on each appreciated. biggest concern wud b eating up resources w/"open/running" pages

  • Network problem for iphone 4s

    Few time dayly my phone lost conection network-Orange romania! I must close and open every time or wait for reconect! Already i changed the Sim, i make restore from itunes, but uselles! All this hapened after i make upgrade at last  version of soft!

  • How to disable the "scroll lock" pointer?

    I use 2-finger swipe to scroll on my trackpad. I often get my pointer transformed into a scrolling pointer: it is gray circle about 1 cm in diameter, with a small white circle in the middle, 1 small arrow tip pointing down below the circle and 1 arro