Skip to content

Incorrect Linking with multiple d2 files #2104

@rutvora

Description

@rutvora

main.d2

...@test

test.d2

elem: elem {
  link: https://google.com
}

I am running this as d2 -w -p 8080 main.d2

As you see in the bottom left of this image, the link is (incorrect) localhost:8080/test1.svg instead of (correct) https://google.com
EDIT: Note that my mouse pointer is hovering over elem (which is not shown in the screenshot)
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions