Commit b662445
committed
fix(ndbc): write full /systems/{id} URL in platform@link.href
_deploy_station() previously stored the bare server UUID as platform@link.href,
producing 'csapi-go-v2/{uuid}' (missing the /systems/ segment). The explorer's
normalizeLinkHref extracted the pathname as '/csapi-go-v2/{uuid}' and then
apiFetch prepended connection.baseUrl causing a 404.
Changes:
- _deploy_station(station, system_server_id, base_url): accepts base_url and
builds href as '{base_url}/systems/{system_server_id}'.
- Bootstrap call site updated to pass base_url.
- fix_platform_links.py: one-shot script that PATCHed the 5 existing station
deployments on the live server (2026-05-10).1 parent 120a516 commit b662445
2 files changed
Lines changed: 50 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
621 | 621 | | |
622 | 622 | | |
623 | 623 | | |
624 | | - | |
| 624 | + | |
625 | 625 | | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
626 | 631 | | |
627 | 632 | | |
628 | 633 | | |
| |||
636 | 641 | | |
637 | 642 | | |
638 | 643 | | |
639 | | - | |
| 644 | + | |
640 | 645 | | |
641 | 646 | | |
642 | 647 | | |
| |||
750 | 755 | | |
751 | 756 | | |
752 | 757 | | |
753 | | - | |
| 758 | + | |
754 | 759 | | |
755 | 760 | | |
756 | 761 | | |
| |||
0 commit comments