Linking documents (pages)
If you need to create a permanent link to a document, you need to use a URL in the following format:
http://www.example.com/getdoc/016fad52-0d69-46d5-80dc-daec9173c0c7/Products.aspx
It's an equivalent of:
http://www.example.com/company/products.aspx
However, in the first case, the link keeps working even if you move the document to some other place.
The URL consists of the following parts:
<domain>/getdoc/<document GUID>/<document name><extension>
The <document GUID> value is a unique identifier of the document. You can find this value at CMS Desk -> Content -> Properties -> General, in the Node GUID field.
The <document name> value may contain any value - it's not used by the system and it's only used for search engine optimization. By default, the system uses the document name for this value.
Linking a specific language version of the document
If you need to link to a specific language version of the document, you need to use a URL in the following format:
http://www.example.com/getdoc/8FG7-84E394-FABD-5678/our-services/fr-fr.aspx
It displays the given document in French (if the document is translated). It's an equivalent of
http://www.example.com/company/our-services.aspx?lang=fr-fr
The URL consists of the following parts:
<domain>/getdoc/<document GUID>/<document name>/<culture code><extension>
Linking attachments
If you need to create a permanent link to a file uploaded as a document attachment, you need to use a URL in the following format:
http://www.example.com/getattachment/763c8921-be94-4610-99b4-25e8d3be5b08/logo.aspx
The URL consists of the following parts:
<domain>/getattachment/<file GUID>/<filename><extension>
The <file GUID> value is not the same as the document GUID. It's a GUID of the file in the CMS_Attachment table. You can find this GUID if you display the attachment in CMS Desk and view its URL.
The <file name> value can contain any text.
You can find more details on available parameters in the following topic: GetFile.aspx parameters.
Page url: http://devnet.kentico.com/docs/5_5r2/devguide/index.html?linking_pages_and_files.htm