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:
Torsten Schulz (local)
2026-03-10 22:37:30 +01:00
parent 0e4d1707fd
commit c472bb1fdc
2 changed files with 11 additions and 8 deletions

View File

@@ -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;