Skip to content

Bug: CLI produces wrong URLs for documents #231

@juligasa

Description

@juligasa

Repro

seed-cli --server https://seedteamtalks.hyper.media query z6MkuBbsB1HbSNXLvJCRCrPhimY6g7tzhr4qvcYKPuSZzhno --path /projects --quiet

Output:

hm://z6MkuBbsB1HbSNXLvJCRCrPhimY6g7tzhr4qvcYKPuSZzhno/projects/deployment-self-host-enhacements

Expected:

https://seedteamtalks.hyper.media/projects/deployment-self-host-enhacements

What's happening

The CLI always outputs hm:// URLs. The account metadata already has siteUrl: "https://seedteamtalks.hyper.media" but the CLI never uses it when formatting output.

This is how the wrong URL from the Slack thread was produced — the hm:// URL got opened via the gateway which rendered it as https://seed.hyper.media/hm/z6Mk.../path?l instead of the canonical site URL.

You can verify the siteUrl is available:

seed-cli --server https://seedteamtalks.hyper.media account z6MkuBbsB1HbSNXLvJCRCrPhimY6g7tzhr4qvcYKPuSZzhno
"metadata": {
  "name": "Develop Seed Hypermedia",
  "siteUrl": "https://seedteamtalks.hyper.media"
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions