HTTPS Proxy Clients and Relative Redirect Locations
A Location field need not contain a complete absolute URL. A client interpreting a relative value against the wrong base can request an unrelated path while the proxy connection itself remains healthy. With Go2Proxy HTTP and HTTPS proxies, preserve each request URL before following an approved redirect. The routing service does not decide how an application resolves a relative reference or carries request state to the next destination.

Preserve the URL for the current hop
Resolve the returned reference in the context of the request that produced that response, using a standards-aware URL implementation. Do not concatenate the string onto a hostname or use the original job URL after several redirects.
Record the requested URL and the resolved next URL separately. A relative path, an absolute path and a scheme-relative reference can select different destinations. Treat those forms as deliberate test cases rather than equivalent formatting variations.
Check the destination before following it
A resolved URL still needs to satisfy the task's approved destination policy. Examine scheme, host and relevant path scope before making another request. Reject unexpected destination changes through a clear outcome instead of silently widening the collection boundary.
Use the redirect and credential review guide to keep proxy-access details separate from destination credentials and redirect state. A permitted redirect does not justify sending an application secret to a newly selected host.
Separate URL resolution from visitor state
The correct next address can still show unexpected content if cookies, language or saved market preferences differ. Preserve those conditions with the redirect trace rather than attributing every content mismatch to reference resolution.
Keep a bounded hop limit and one task deadline. Repeated references can form a loop even when each resolves successfully. A parser that produces a valid URL has completed one step of acceptance, not the complete navigation check.
Use a nested-path fixture
Imagine an owned response at a nested catalog path returning a reference to a sibling page. Test that case alongside a root-relative destination and an explicitly allowed cross-host destination. Give each final page a recognizable marker.
The fixture should fail if the client resolves every reference against the site root. It should also distinguish a prohibited destination from an allowed destination whose content fails validation. Those failures require different corrections.
Save the trace that explains the result
Keep each hop's method, status, response location and resolved target in a sanitized record. Sensitive query values and authorization material should not appear in an exported navigation trace.
When the application changes its redirect behavior, compare the complete path and final marker. A shorter redirect chain is not automatically better if the client now skips a required localization decision or reaches a different page identity.
Frequently asked questions
Can Location contain a relative reference?
Yes. The client must resolve the reference against the appropriate request URL before checking whether the next destination is allowed.
Should the original job URL remain the base forever?
No. A later response belongs to its own request URL. Reusing the initial base can produce an incorrect next hop after intermediate redirects.
Does a valid resolved URL make the redirect acceptable?
No. Destination policy, credential handling, hop limits and final content validation still apply to the navigation.
Before the next run
Retain sibling-path, root-relative and allowed host-change cases together so URL-library or redirect-handler updates cannot silently alter the approved journey.



