Link to Document Content Type issue - links not relative

I'm using the Link to Document content type in a library in order to link to documents in other libraries.  We just migrated to 2010 from WSS 3.0 (2007) and are having an issue.  We view our site internally thorough the internal machine address/name
and also have users connecting remotely from an external url.  In 2007, it didn't matter whether we were internal or external, all links were apparently stored as relative because the "link to document" items worked fine either way.  This
was despite entering the url fully and not relative.  When viewing/editing the properties of that item, it shows you the full url applicable to where you are viewing it...internal if internal, external if external.  
However, after the migration to 2010, all links that existed previously are fine, but any new items created using link to document apparently no longer store them as relative so either the internal or external users get the wrong link.  For example,
if I put in the link as http://servername/library/doc the external users get that same link and it doesn't work, since it should be like https://myurl/library/doc.  Viewing/editing the properties of the item shows an absolute url of whatever location
the item was added.  For instance if I'm connected externally and add an item, even if i only enter it as relative, it creates the link as https://myurl/library/doc and then the internal users end up having to connect via that url and that is just a pain
due to AD and certificate issues.  The internally created links are obviously not accessible at all from the outside. 
I've also tried storing the link as relative when creating the item but it seems to overwrite it with the absolute link.
This is causing quite an issue with us.  Does anyone have any insight as to what is going on and how to fix it?
thanks!

Hmm...I thought I had the thread set to email me if there were replies and I never received an email so I thought there were no replies.  I came back to this since another issue cropped up that is related and there were replies!
I cannot recall how things were set up exactly in 2007 and there's no way to look back now.  I'm a novice when it comes to AAM/DNS/IIS really.  Maybe you can suggest what it should look like?
We have our site which is accessed internally by http://machinename .  Externally, we use https://sharepoint.mydomain.com .   
In AAM we have http://machinename listed in the default zone with the same url for internal and public.  We also have https://sharepoint.mydomain.com listed, in the internet zone and it also has the same url for both internal and public.  
In IIS, the sharepoint site has bindings for port 80 and 443, but nothing specific to https://sharepoint.mydomain.com
DNS....I'm not sure what should be here, if anything.  
We can access the site just fine externally, there are just a few instances where some links do not work correctly and point to the internal url instead of external when you are external.  The original post is one time and the other, found the other
day, is a search box webpart that points to a relative url for the results page but externally it ends up going to the internal url.
I'd appreciate any guidance.  Thanks!

Similar Messages

  • Issue in creating a add link to a document content type on a doc lib name with , / special characters

    hi,
    i am having a  requirement to create/use "add link to a document" content type for a item in the document library.
    so i got  the code from below site :
    http://howtosharepoint.blogspot.in/2010/05/programmatically-add-link-to-document.html
    my issue is, if teh document  library names are single words - like MOM, model, procedures etc this  functionality is working fine and i am able to view the link to a document as an item. 
    but when the doc lib name contains special characters like , or  /  , this link to a  document  content type functionality is NOT working.
    can anyone pls point me whether this is the  actual  issue ? ie, if  the doc lib name contains special chars  like , or /  my
    add link to a document wont work? is there any restrictions/limitations for doc lib names in SharePoint ?
    for eg: my doc lib names are :
    1) Report and analysis, Data
    2) form / template
    3) map/ plot
    help is highly appreciated!

    hi,
     its talking abt the subsite names and  folders and NOT the document librraies.
     is there any link which gives the naming convention / restricted names for  document libs or  splists , from msdn / blogs.technet.
    thnx

  • Problem "Link to a document" content type within document set - Bug?

    Hello,
    I'm having an issue with the "Link to a document" content type in one of my document libraries. The issue is when you create a link to a document inside a document set:
    The result is that the users get redirected to the wrong URL (../docsethomepage.aspx instead of ../docsethomepage.aspx?ID=.......), and instead of seeing the actual document set they started from, with the new link (or any document that is already in the
    document set) the users see a default view of a generic document set - not the one they started from:
    Any suggestions on how to fix this? One library has this faults and one does not. Our SharePoint server is up-to-date.

    Hi,
    I reproduced the issue in different versions of SharePoint, it works in SharePoint Server 2013, and the issue occured to Office 365. I then tried enabling “Launch forms in a dialog”, it worked.
    I will forward the issue to our internal feedback channel. And since the issue occurs to Office 365, please create service request with online engineer for root cause.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Get original URL for Link to a Document content type

    Hello,
    I'm having a SharePoint doc library with ItemAdded event receiver attached to it and "Link to a Document" content type enabled. My general question is:
    How to get URL that the link points to?
    I'll show you how I'm trying to achieve that:
    SPWeb parentWeb = properties.Web;
    if (properties.ListItem.ContentType.Name == LinkContentTypeName)
    object urlFieldValue = properties.AfterProperties["URL"];
    if (urlFieldValue != null && urlFieldValue.ToString() != String.Empty)
    // continue
    But I always get null so I can't even get inside IF statement. I've tried to install ItemAdded event receiver as synchronous, but it didn't make a difference. I'd appreciate any ideas.
    Regards
    Tomasz

    This is not very convenient solution, because ItemUpdated can be executed more than once. However this certainly will work, so I'll accept this as a workaround. Actually I've found another one. I'm parsing link aspx file and I'm getting the URL
    from mso:URL tag:
    <%@ Assembly Name='Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' %><%@ Register TagPrefix='SharePoint' Namespace='Microsoft.SharePoint.WebControls' Assembly='Microsoft.SharePoint' %><%@ Import Namespace='System.IO' %><%@ Import Namespace='Microsoft.SharePoint' %><%@ Import Namespace='Microsoft.SharePoint.Utilities' %><%@ Import Namespace='Microsoft.SharePoint.WebControls' %><html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"><Head> <META Name='progid' Content='SharePoint.Link'><!--[if gte mso 9]><SharePoint:CTFieldRefs runat=server Prefix="mso:" FieldList="FileLeafRef,URL,_x0043_C1,KitId,ItemKey,Suffix_x0020_Code"><xml><mso:CustomDocumentProperties><mso:URL msdt:dt="string">http://serverUrl/sites/arrangement1/Shared Drawings/test, test</mso:URL><mso:ContentType msdt:dt="string">Link to a Document</mso:ContentType><mso:File_x0020_Title msdt:dt="string">Winding A Assembled</mso:File_x0020_Title>
    <mso:Revision_x0020_Number msdt:dt="string">-</mso:Revision_x0020_Number>
    <mso:Page_x0020_Size msdt:dt="string">A2</mso:Page_x0020_Size>
    <mso:ContentTypeId msdt:dt="string">0x01010A0082704B66E8B222478AF2E379D8A2FFB9</mso:ContentTypeId>
    <mso:ItemKey msdt:dt="string">1</mso:ItemKey>
    </mso:CustomDocumentProperties></xml></SharePoint:CTFieldRefs><![endif]--></head><body><form id='Form1' runat='server'><SharePoint:UrlRedirector id='Redirector1' runat='server' /></form></body></html>
    Regards
    Tomasz

  • File created with Document Content Type will not be saved back to Sharepoint library

    Recently some of our users, after upgrading to Windows 8.1 with Office 2013, intermittantly are not able to save files created using  document content types template back to sharepoint library. Instead the location is set
    to their local storage. The same templates used by Windows 7 users with Office 2010 are working fine. Setting the SP sites as Trusted location in IE and Clearing IE Cache did not help. Adding the SP site in Word Trusted Location did
    not help. Any suggestions how this can be resolved is appreciated. Thanks.     

    Hi,
    According to your post, my understanding is that you could not save office file back to the SharePoint Document library.
    It may have to something with your Word Settings. When you click new and it opens in MS Word, word treats it as unsafe because perhaps it is not saved. To make it work:
    Go to Word (2013) -> File Menu -> Options -> Trust Center -> Trust Center Settings
    -> Protected View Tab -> Uncheck "Enable Protected View for files located in potentially unsafe locations" (2nd option)
    Here is the similar post, you can take a look at:
    http://blogs.interfacett.com/word-2010-not-saving-back-to-sharepoint-2010-by-default
    If the issue persist, you can also check the event log and ULS log to see if anything unexpected occurred.
    To check event log, click the Start button and type “Event Viewer” in the Search box.
    For SharePoint 2010, by default, ULS log is at:
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Content Type Description is not adding on list

    Hello
    I have some custom content type on site level and each content type I have different description. When I add content type manually  in existing document library, description is also coming for added content type. But when I add content type programmatically,
    description not coming with content type it is coming as empty. I have used following MSDN article for adding content type.
    http://msdn.microsoft.com/en-us/library/office/aa543576(v=office.14).aspx
    Can one please let me know what am I missing here?
    Regards
    Avi

    Hi,
    According to your post, my understanding is that the description of the content type not displayed in the site while adding the content type programmatically.
    I had tested the code of the above link with a custom content type based on the Document content type, it worked without any issue.
    To narrow down the issue, you can check with the following steps.
    You can recreate a new content type then check whether it works.
    You can use other libraries to check whether it works.
    You can also check the event log and ULS log to see if anything unexpected occurred.
    To check event log, click the Start button and type “Event Viewer” in the Search box.
    For SharePoint 2010, by default, ULS log is at      
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to add the library document version to the parent Document content type?

    Hi All,
    I have a PWA instance with a project site for each project.
    Each project site has its own document library.
    Now I want to create several Templates to be available within each document library.
    I have created the new content Site Content Types (Site Settings > Site Content Types) to fit my needs; each content type has the "document" content type as parent type.
    Now I want include the "version" property (the dynamic value from the versioning) to each new document type, so I have tried to enable the "Information management policy settings" to the parent "document" type or the new ones,
    including the label "{Version}", but I receive this error:The label reference, Version, could not be found.
    So the only way to do this, is to open each site document library and make this change within it.
    Why I can't enable the Lable at the Site level?
    Thanks

    Hi,
    I can reproduce the issue by adding {version} or {_UIVersionString} in site content types > Document > Information Management policy settings > enable label.
    As workaround, please create a document library, then add label in document library settings > Information Management Policy settings. Now save this document library as template and create new document library based on this template, the policy settings
    will be saved for new document libraries.
    Regards,
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Can't change column order from document content type

    Hi,
    I noticed a strange error in our SharePoint 2010 environment:
    We are using a SharePoint 2010 Enterprise Edition which was migrated from a MOSS 2007 Enterprise Edition with one central document library.
    In this library are several content types plus the given document content type which was already there.
    When I try to edit the column order in the document content type settings the following error occurs:
    Server Error in '/' Application.
    Object reference not set to an instance of an object.
    Description:
    An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and
    where it originated in the code.
    Exception Details:
    System.NullReferenceException: Object reference not set to an instance of an object.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location
    of the exception can be identified using the exception stack trace below.
    Stack Trace:
    [NullReferenceException: Object reference not set to an instance of an object.]
    Microsoft.SharePoint.ApplicationPages.ChangeFieldOrderPage.OnLoad(EventArgs e) +376
    System.Web.UI.Control.LoadRecursive() +65
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2427
    This error only occurs with the document content type. Furthermore I am not able to reproduce this error on other libraries except when
    I am using a template from this library.
    I tried to delete this content type but every time an error occurs which is saying that the content type is still in use. I checked the entire library and all informations from the SharePoint Manager 2010 Tool but the content type is definitely no longer in
    use.
    I appreciate every little bit of help regarding this problem.
    PS:
     There is also another error concerning every content type in this library: I can’t create a new or use the standard Microsoft document information panel template because every time I try to there also occurs an error which
    states out a NullReferenceException regarding the metadata of this library. But that is another story which is next on my to-do list. First I would like to solve the first error concerning the column order.
    Thanks and regards,
    Thomas K.

    Hi TKellner,
    Thanks for your post.
    1.      
    Please try to use the code below to check whether the Content Type is in used.
    http://www.learningsharepoint.com/forum/sharepoint-2007-programming/check-where-the-content-type-is-used-in-sharepoint-site/
    2.      
    Can you open the Document Library in SharePoint Designer 2010? Also, can you open the template file correctly?
    Share the result.

  • Cannot delete Document Content Type. Getting error "Document Content Type Still in use" powershell, sharepoint 2013

    not able to delete "Document" content type from a library. I have a custom content type. I have added the custom content type to all the items of library. also, i have added the custom columns from "Document" content type to my custom
    content type. Still cannot delete the "Document" content type. I am doing the same process in different site collections and different libraries. But not able to delete in a few say- 10 in 100. Get the error - "Document content type is still
    in use"

    Hello 
    Here you go
    http://blog.octavie.nl/index.php/2012/09/14/error-the-content-type-is-in-use-explained
    https://social.technet.microsoft.com/Forums/en-US/e81020e3-2c12-4f39-a2f4-f1fd88ba6547/content-type-is-still-in-use-on-document-library
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Link translation without content type

    i am trying to publish a website which uses a XMLHttpRequest without defining a content type.
    the result i am getting is that
    www.internalurl.com/internalPath/?somedatabutnofile is translated in
    www.externalurl.com/externalPath/internalPath/?somedatabutnofile.
    As you can see the internal path is also added in the url, which results in a 404.
    How can force correct translation on this path?
    Thanks
    PS: i am using ForeFront TMG 2010 SP2

    Below links should be able to help you regarding Link Translation.
    http://technet.microsoft.com/en-us/library/cc995120.aspx
    http://technet.microsoft.com/en-us/library/cc984424.aspx
    http://technet.microsoft.com/en-us/library/cc995056.aspx

  • Update content type in list not working

    My list content type is not getting updated.
    I have a content type defined in a feature. I have created a new column and updated the feature definition and reactivated the feature.  I have also written powershell to check and update the content type with the new column.  The content type
    gets updated but not at the list level.  The powershell looks like this:
    Function UpdateContentType($contentType, $fieldLink)
    if ($contentType.FieldLinks[$fieldLink.Name] -eq $null)
    Write-Host Adding Field to content type
    $contentType.FieldLinks.Add($fieldLink)
    $contentType.Update($true)
    I thought the Update method was supposed to push the changes down, but it doesn't seem to be working.  This code does work in a different environment so I'm not what is going on.
    Caroline

    You will need to updated the list also, after updating the content type
    This is sample code how you update list which is using the Content Type.
    IList<SPContentTypeUsage> usage = SPContentTypeUsage.GetUsages(newsCT);
    foreach (SPContentTypeUsage item in usage)
    if (item.IsUrlToList)
    SPList list = rootWeb.GetList(item.Url);
    if (!list.Fields.ContainsField(firstName.InternalName))
    list.Fields.Add(firstName);
    list.Update();
    more information you can check at this link
    get2pallav
    Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.

  • Changed content type (DDOCTYPE) is not visible in GUI

    Hi,
    I have strange problem. I made configuration import from other UCM machine (content types, metadata, security groups and so..). After import I checked it - I have my security groups there, I have my metadata there, but I DO NOT HAVE there my content type (in drop down box there are only couple of preinstalled content types - Acme xxx Department...). I have checked in the admin applets -> configuration manager and my added content type was there (among the 'Acme ....' preinstalled content types). I even deleted those 'Acme....' content types to be sure that only my one is there. But in the search gui there is still drop down box with 'Acme...' types and my own is missing there.
    Strange because I do not know why it shows content types which have been deleted and are not in database anymore. I checked the database and in the table DOCTYPES there is only my own content type.
    Can anybody give me som hint? I tried restarting servers, clearing browser's cache, but still without success.

    Hi. I tried it, but it did not help. :(
    It is strange. Before I had the error in log:
    Unable to rename '/appl/ucm_cluster/server/weblayout/resources/schema.work' to '/appl/ucm_cluster/server/weblayout/resources/schema' while publishing schema.
    When I looked into the 'schema' dir there was old doctypes in js file
    In 'shcema.work' which was supposed to be renamed to 'schema' there was my correct document type in js file.
    Now in /server/weblayout/resources/schema/views/doctypes/all.js file there is only my correct document type but i still have in gui the old wrong doctypes! :(

  • SOAP Adapter:  Content Type Issue in WebServices via HTTP

    Hi,
    I have configured a Receiver SOAP adapter. When i had to test the message i had an HTTP 415 error.
    i found that the sender SOAP adpater that received this message is not capable of handling Content-Type: Application/XML i.e. which is being transmitted by the Receiver SOAP Adapter.
    Please let me know how to configure in the Receiver SOAP adapter so that the HTTP Content-Type would be TEXT/XML instead of Application/XML .
    Thanks in Advance,
    Venkatesh

    Hi Michal,
    I have created a Web service for a RFC function Module. The webservice is available in SOAMANAGER.
    It got activated also .  But whenever I tried to test, I am getting the below error,
    "Message Envelope not found. Probably Empty SOAP message"
            Request:
            POST /sap/bc/srt/rfc/sap/yotci_i015_linkp8sap/100/yotci_i015_linkp8sap/yotci_i015_linkp8sap HTTP/1.1
    Host: sapkrftewd01.krft.net:8030
    Content-Type: text/xml; charset=UTF-8
    Connection: close
    Authorization: <value is hidden>
    Content-Length: 657
    SOAPAction: ""
    <?xml version="1.0" encoding="UTF-8" ?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema"><SOAP-ENV:Header><sapsess:Session xmlns:sapsess="http://www.sap.com/webas/630/soap/features/session/"><enableSession>true</enableSession></sapsess:Session></SOAP-ENV:Header><SOAP-ENV:Body><ns1:YotciI015Linkp8sap xmlns:ns1='urn:sap-com:document:sap:soap:functions:mc-style'><IvParam1>POD</IvParam1><IvParam2>00006095</IvParam2><IvParam3>01/14/2009</IvParam3><IvParam4>PDF</IvParam4></ns1:YotciI015Linkp8sap></SOAP-ENV:Body></SOAP-ENV:Envelope>
             Response:
            HTTP/1.1 500 Message E 1S 406 cannot be processed in plugin mode HTTP
    content-type: text/xml; charset=utf-8
    content-length: 0
    accept: text/xml
    sap-srt_id: 20090224/141936/v1.00_final_6.40/49A4677A2D0736EDE10000000A3597E9
    server: SAP Web Application Server (1.0;700)
    Is this because of "do not use SOAP envelope" check?
    I didn't check this check box.
    If that is the error could you please tell me how to see the "do not use SOAP envelope"?
    Where can I find SOAP channel?
    I am very new to SOAP concept. 
    One JAVA application is going to invoke this Webservice from SAP.
    Please help me.
    Thanks,
    Bala.

  • SharePoint 2013 - CQWP include child content types issue

    Hello SharePoint enthousiastes,
    I'm experimenting a weird issue with the content query webpart in SharePoint 2013.
    In the query part of the webpart settings, in the Content type section, I want to untick the "Include child content types" option >
    Content Type:
    Show items of this content type group:
    Show items of this content type:
    Include child content types
    The checkbox stays ticked even if I click on apply or ok to validate the setting.
    Is it a bug? What am I missing?
    It always worked directly in the previous version of SharePoint (2007/2010) so I don't understand why is it not working directly with 2013.
    Thanks in advance for your replies.
    BR,

    Hi BR,
    I could not reproduce this issue, I can untick the option "Include child content types" for Content Query Webpart in my SharePoint 2013.
    Please try using SharePoint Farm account(system account) to create a page and add a content query webpart, and test if this issue still occurs, also try with SharePoint Administrator account.
    And my SharePoint 2013 has been installed with
    April 2013 CU, you can install it or the latest CU and test again.
    Thanks
    Daniel Yang
    TechNet Community Support

  • Consuming Webservice in WebDynpro - Content-Type issue

    Hi,
    I am getting a shortdump when consuming WebService in WebDynpro.
    I trace it back to the class CL_SOAP_HTTP_TPBND_ROOT method GET_HTTP_HEADERS whereby the
    value = 'text/html; charset=iso-8859-1' while the constants tsrc_soap_11_http_content_type = 'text/xml' ; tsrc_soap_bx_http_content_type = 'application/x-sap-bxml' ; tsrc_soap_mtom_http_cont_type = 'application/xop+xml' ; tsrc_soap_mp_http_content_type = 'Multipart/Related'. Because of this Content-Type difference my WebDynpro application dumps?
    Any ideas how to solve this problem?
    Thanks.
    Regards,
    Amel

    hi,
    Few indroductory sessions
    /people/thomas.jung/blog/2007/12/17/consuming-services-with-abap -Consuming webservices with webdynpro.
    It is possible to create webservice in ABAP as well as in Webdynpro.
    ABAP Webservice:
    http://wiki.open-esb.java.net/Wiki.jsp?page=BAPIWEBSERVICE
    http://www.sappro.com/downloads/SAPXI.pdf
    Webdynpro Webservice:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/244e7923-0a01-0010-5887-fe0b0c6dbb8d
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/30f1b585-0a01-0010-3d96-ad0ea291c4f9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/db785a70-0701-0010-858c-eee0ec4fe1b3
    In Web Dynpro ABAP there is nothing special about calling a web service. Unlike WD Java, there are not dedicated model object types in WD ABAP. WD ABAP simply has the ability to interact with other ABAP development object types. You can call function modules, ABAP classes, even modules in old dynpro apps.
    So calling the webservice from ABAP therefore is just the process of generating the ABAP Proxy Class. This is the same process regardless of if you want to use this proxy class from WDA or any other type of ABAP development object. You can then call the proxy class from WDA just like any other type of ABAP class. There is a service wizard option in later support package levels that includes an option for ABAP Proxy classes - although it doesn't generate the proxy class it just generates the code and context for the call to an already existing proxy class. The service wizards in WD ABAP are not required however. They are just shortcut code generators and often can't even generate a complete context for a complex web service proxy - so expect to do some manual adjustment after running the wizard.
    Edited by: Mahalakshmi kothuri on Jun 1, 2008 4:17 PM

Maybe you are looking for

  • SQL condition not working

    Hi, The following query works as expected while running from Oracle database. the same query is on a query zone of type F1-DE-QUERY but doesnt work the same way. i know the problem is in using the replace(PHONE,')','') LIKE .... statement only. is th

  • This may seem obvious, but how can you add, subtract multiply divide in forms central.

    I do not see any way of performing basic math in Adobe Forms Central. Even i Adobe Acrobat form designer there seems to be a way, but you cannot select the fields needed in the calculation?

  • A minor bug with Application Bulider menu in 2.2.1

    I have two apex instances which are used primarily for development and periodicaly synchronized via application exports. After some time of such activity I lost my application in the application builder menu on the first instance (still have access t

  • Os 10.4.11 upgrade question

    I want to upgrade from Mac OS X 10.4.11  to lion - do i need first to purchase snow leapord?

  • Need help with total in my mortgage program

    I have been work on this program and I can't seem to correct how the amount is shown. It gives several numbers after the decimal. Can anyone please help. import java.awt.*; import javax.swing.*; import java.awt.event.ActionEvent; import java.awt.even