fix(clickTtHttpPageRoutes, clickTtHttpPageService): update effective page URL handling in proxy routes
- Introduced a new variable, effectivePageUrl, to ensure the correct URL is used for rewriting links and form actions in both GET and POST proxy requests. - Updated the logic to derive the page origin from effectivePageUrl, enhancing the accuracy of base tag handling for relative URLs. - Enhanced logging in the fetchWithLogging function to include the response URL, improving traceability in HTTP requests.
This commit is contained in:
@@ -194,6 +194,7 @@ async function fetchWithLogging(options) {
|
||||
body: responseBody,
|
||||
executionTimeMs,
|
||||
headers: response.headers,
|
||||
responseUrl: response.url || url,
|
||||
};
|
||||
} catch (error) {
|
||||
const executionTimeMs = Date.now() - startTime;
|
||||
|
||||
Reference in New Issue
Block a user