Commit 2fff202
Revert siteUrl pass-through for Connect Cloud rendering (.11)
During production testing, we discovered that Connect Cloud serves
content at a different domain than the dashboard URL stored in
_publish.yml:
- Dashboard URL: connect.posit.cloud/account/content/<id>
- Serving URL: <id>.share.connect.posit.cloud/
Passing the dashboard URL as siteUrl would override the correct
window.location.host fallback in linkExternalFilter, causing all
links to be misclassified as external. The same mismatch would
affect canonical URLs and Open Graph metadata.
This differs from gh-pages where the published URL and serving URL
are the same domain, making siteUrl pass-through correct there.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 1761371 commit 2fff202
2 files changed
Lines changed: 5 additions & 3 deletions
File tree
- src/publish/posit-connect-cloud
- tests/docs/manual/publish-connect-cloud
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
465 | 470 | | |
466 | 471 | | |
467 | 472 | | |
468 | 473 | | |
469 | 474 | | |
470 | | - | |
471 | 475 | | |
472 | 476 | | |
473 | 477 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
146 | | - | |
147 | 145 | | |
148 | 146 | | |
149 | 147 | | |
| |||
0 commit comments