From a56face85cf4ddf3baea653be7a817f57fb08fb9 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 9 Jul 2023 02:32:02 +0000 Subject: [PATCH] backup --- UI/Component/Form.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/UI/Component/Form.js b/UI/Component/Form.js index 38fd39b..1c0e758 100755 --- a/UI/Component/Form.js +++ b/UI/Component/Form.js @@ -1083,6 +1083,11 @@ export class Form request.setResultCallback(0, function (xhr) { window.omsApp.logger.log(xhr.response); + const headerLocation = xhr.getResponseHeader('location') + + if (headerLocation !== null) { + window.location = headerLocation; + } if (xhr.getResponseHeader('content-type').includes('application/octet-stream')) { const blob = new Blob([xhr.response], { type: 'application/octet-stream' });