Repository navigation
Conversation
|
997c439 to
32ff728
Compare
chessing234
left a comment
There was a problem hiding this comment.
Reviewed head 32ff728f425556a6a279186e4ff242f440e006cc.
Reviewed redirected page URL capture, origin/directory construction, and relative icon resolution. The isolated webapp-install test passed, including the redirect-to-subdirectory fixture. No actionable defect found in that covered path. I did not perform a real network/webapp install.
|
Thanks for this. I read the change and classified it as a bug fix: relative Nothing is needed from you. The pull request will come round again when reviews are available, and the next comment will cover the reproduction on a worker and the review. |
Fixes #14219
Problem
omarchy webapp installcan't fetch the icon for apps served under a subpath, so the install fails withError: Failed to download icon.(or prompts for an icon URL interactively).For example, a self-hosted app where
https://host/redirects tohttps://host/app/, and the page declaresfetch_site_iconresolved that relative href against the origin (https://host/icon.png→ 404) rather than the page's directory (https://host/app/icon.png), then fell through to/apple-touch-icon.png(404) and Google's favicon service (404 for a private host).Fix
curl -w '%{url_effective}'on the same request that fetches the page), sohttps://host/→/app/resolves correctly too.https://host/app/#/home).Absolute, protocol-relative and root-relative (
/...) hrefs are handled as before. The/apple-touch-icon.pngfallback now uses the post-redirect origin.Testing
test/shell.d/webapp-install-test.shwith a stubbedcurlserving a redirected/app/page with a relative icon href. It fails onquattroand passes with this change.webapp-install-test.sh,webapp-install-escaping-test.sh,webapp-name-test.shandpreinstalls-test.shpass.