Skip to content

Fix: Resolve proxied CSS assets after redirects - #774

Merged
axllent merged 1 commit into
axllent:developfrom
dalexhu:fix/screenshot-proxy-redirect
Nov 17, 2026
Merged

axllent merged 1 commit into
axllent:developfrom
dalexhu:fix/screenshot-proxy-redirect

Conversation

@dalexhu

@dalexhu dalexhu commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

When a proxied stylesheet redirects, relative asset URLs are currently resolved against the initial stylesheet URL. That can send screenshot requests to the wrong host or directory.

Resolve relative references against the final response URL. The regression test redirects a stylesheet to a different HTTP server and path, then fetches its relative image through the proxy.

go test ./server/handlers passed.

@axllent
axllent merged commit e313b8b into axllent:develop Nov 17, 2026
8 checks passed
@dalexhu
dalexhu deleted the fix/screenshot-proxy-redirect branch November 17, 2026 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants