Supported location hash properties

The location hash property - the part after the # sign in the address bar - is used to reference specific files. It consists of a leading character for the type of the reference, and data which must be URI encoded. The following reference types are supported ({id} and {path} references a file in the respective storage location):

  • G{id}: Google Drive
  • W{id}: OneDrive
  • T{id}: Trello
  • D{path}: Dropbox (relative to Apps/drawio)
  • H{path}: GitHub (org/repo/branch/path)
  • A{path}: GitLab (org/repo/branch/path)
  • L{path}: Browser storage
  • U{url}: Opens the diagram from a URL (example). If the URL does not end with a filename, then use the template-filename URL parameter to specify the filename.
  • R{data}: Passes raw file data (example)
  • S{compressed-json}: Passes the import descriptor (example)
  • P{encoded-json}: Passes URL parameters as a JSON object. In addition to all supported URL parameters, the JSON object may contain a data field for the diagram data to load and a hash field for the new hash property to use after parsing.
  • _CONFIG_{compressed-json}: Configures the diagrams.net client using the given compressed JSON data.

If location hash properties are not available, use the open URL parameter instead.