diff --git a/CHANGELOG.md b/CHANGELOG.md index 936fb1a3..b4fcefed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Fixed + +- `FORMS_LIBRARY` post submission and cancel action not refreshing the form when the form is the home screen of the app. + ## [23.4.1] - 2025-10-13 ## [23.4.0] - 2025-09-15 diff --git a/package-lock.json b/package-lock.json index fed62f7e..1131d6d9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3102,7 +3102,7 @@ }, "node_modules/@oneblink/types": { "version": "1.0.0", - "resolved": "git+ssh://git@github.com/oneblink/types.git#bd28939150fbba6efb4d435246c75c017e70db16", + "resolved": "git+ssh://git@github.com/oneblink/types.git#abce9ace69844d6fde9031fd054b57fd90429552", "dev": true, "license": "GPL-3.0-only", "dependencies": { @@ -15683,7 +15683,7 @@ } }, "@oneblink/types": { - "version": "git+ssh://git@github.com/oneblink/types.git#bd28939150fbba6efb4d435246c75c017e70db16", + "version": "git+ssh://git@github.com/oneblink/types.git#abce9ace69844d6fde9031fd054b57fd90429552", "dev": true, "from": "@oneblink/types@github:oneblink/types", "requires": { diff --git a/src/submission-service.ts b/src/submission-service.ts index 2244f434..e1ded970 100644 --- a/src/submission-service.ts +++ b/src/submission-service.ts @@ -506,9 +506,14 @@ async function executeAction( switch (action) { case 'CLOSE': return closeWindow() - case 'FORMS_LIBRARY': - onRedirectToRelativeUrl('/') + case 'FORMS_LIBRARY': { + if (window.location.pathname === '/') { + onRedirectToAbsoluteUrl(window.location.origin) + } else { + onRedirectToRelativeUrl('/') + } break + } case 'URL': { const newUrl = replaceInjectablesWithSubmissionValues( redirectUrl || '/',