likec4 icon indicating copy to clipboard operation
likec4 copied to clipboard

[feature request] diagram deep links

Open davydkov opened this issue 2 months ago • 1 comments

Discussed in https://github.com/likec4/likec4/discussions/2309

Originally posted by vedeja October 16, 2025 I often need to share the url to a diagram in the generated and published website. It would be even better if a selection (double clicked element) could be included in that url.

davydkov avatar Oct 17 '25 10:10 davydkov

Important note from @almereyda in #2092:

It would be nice, if the toggle states of relationship browser, element and relationship details popups could be included in the URL.

This also opens the door for discussing to encode the "map coordinates"/"bounding box" and zoom level of the underlying view into the URL as well.

The encoding would have to work directly in the URL without amending a hash fragment to the path, since that is already reserved for --use-hash-history from https://likec4.dev/tooling/cli/#build-static-website.

davydkov avatar Oct 20 '25 23:10 davydkov