Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do link needs to be fully qualified domain name (FQDN) in 0.6.9 ? #2357

Open
rhoit opened this issue Feb 17, 2025 · 2 comments
Open

do link needs to be fully qualified domain name (FQDN) in 0.6.9 ? #2357

rhoit opened this issue Feb 17, 2025 · 2 comments

Comments

@rhoit
Copy link

rhoit commented Feb 17, 2025

I use the d2 diagram generated SVG which is used to navigate my projects. The SVG where I use relative urls routes starting with '/', since it would be same in development or production environment. But now in new version link ignores the relative urls, last known good version was 0.6.5 is there way around this limitation.

Image

EDIT

Found the way around "/route" -> "http:/route" works but not sure about it working in https

pool: {
    shape : circle
    link : "http:/route"
}

@cyborg-ts cyborg-ts added this to D2 Feb 17, 2025
@rhoit rhoit changed the title link need to be fully qualified domain name (FQDN) in 0.6.9 ? do link needs to be fully qualified domain name (FQDN) in 0.6.9 ? Feb 17, 2025
@alixander
Copy link
Collaborator

@rhoit

If I understand correctly, you want to link to an absolute URL from root, like

x.link: /go

The SVG is hosted on a web server. When you run this locally, it goes to http://localhost:3000/go, and when you run it in prod, it goes to https://prod.com/go. Is that right?

@rhoit
Copy link
Author

rhoit commented Feb 17, 2025

@alixander yes that is exactly my problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants