Skip to content

Creating links to d2 files in connections #2701

@thatdevsherry

Description

@thatdevsherry

Objective

Link to local d2 file on a connection.

Current behaviour

Creating file links on connections ends up creating root.layers type of links which are non-existent whereas it should make a proper link to another d2 file.

I might be missing something so please let me know since I can't find this behaviour in docs.

Example

a -> b: rq {
  link: layers.rq
}

b -> a: rsp {
  link: layers.rsp
}

a: {
  link: layers.rq
}

layers: {
  rq: {
    a -> b
  }
  rsp: {
    b -> a
  }
}

The links on connections point to non-existent pages. The link on the node however, works as intended.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions