The location hash property, ie. 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 the data after this character which must be URI encoded. The following reference types are supported ({id} and {path} references a file in the respective storage):

  • G{id}: Google Drive
  • W{id}: OneDrive
  • T{id}: Trello
  • D{path}: Dropbox (relative to Apps/drawio)
  • H{path}: GitHub (org/repo/branch/path)
  • L{path}: Browser Storage
  • U{url}: Open from URL (example)
  • R{data}: Raw file data (example)
  • S{compressed-json}: Import descriptor (example)
  • P{encoded-json}: Passing 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.