Try Now
More in this section

Forums / General Discussions / Document URL property - not what expected

Document URL property - not what expected

2 posts, 0 answered
  1. Suzanne
    Suzanne avatar
    43 posts
    12 Jul 2012
    06 Jun 2011
    Link to this post
    I was expecting the URL property on a Document/File to create a url that would redirect/rewrite to the file.  Instead, it's just renaming the file uploaded.  Is there a way we can specify the url like that for content?

    URL - ccn_copydoc
    Embed link - http://www.mydomain.com/docs/community/ccn_copydoc.docx?Status=Master

    Expected or Need:
    URL - ccn_copydoc
    Embed link - http://www.mydomain.com/ccn_copydoc

  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    16 Aug 2017
    07 Jun 2011
    Link to this post
    Hi Suzanne,

    Thank you for using our services. Can you, please, let us know what you mean by "redirect/rewrite to the file". Currently the way a document URL is constructed is [Documents URL root]/Library/document name, and if you are embedding a link to the document the Mater status is explicitly taken. If you wish you can change the way document's URLs are constructed by mapping a key "urlFormat" for the OpenAccessDataProvider for Libraries, and specify your own value e.g. /[UrlName] which will return only the document name in the URL. However, I would not recommend you set this since it'll be very easy then to have duplicate URL entries,a s the unique Library where the content item is located will not be taken into account anymore when constructing the URL name. I hope you find this information useful. If you need any further assistance, please let us know.

    Kind regards,
    Boyan Barnev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered