hof 22.9.0-fix-timeout-back-button-bug-beta.3 → 22.9.0-fix-timeout-back-button-bug-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/index.js +0 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## 2025-09-05, Version 22.9.0 (Stable), @Rhodine-orleans-lindsay
|
2
|
+
### Fixed
|
3
|
+
- Fixed bug where if text on session-timeout page was not being populated when the browser back button is used.
|
4
|
+
### Changed
|
5
|
+
- Session timeout page is now only available when there is a 'SESSION_TIMEOUT' error. If there is no such error and user navigates to '/session-timeout, the 'page does not exist' error is shown.
|
6
|
+
- 👊 Impact : '/session-timeout' step can be removed from the steps array if it has been set in the project's apps/*/index.js file. This routing is now handled in the hof framework.
|
7
|
+
|
1
8
|
## 2025-08-28, Version 22.8.5 (Stable), @Rhodine-orleans-lindsay
|
2
9
|
### Fixed
|
3
10
|
- Fixed bug where if `serviceName` had not been set in journey.json, the title tab on error pages did not default to the `header` in journey.json.
|
package/index.js
CHANGED
@@ -251,9 +251,6 @@ function bootstrap(options) {
|
|
251
251
|
}
|
252
252
|
|
253
253
|
app.get('/session-timeout', (req, res, next) => {
|
254
|
-
const referer = req.get('referer');
|
255
|
-
console.log(referer);
|
256
|
-
console.log(req.session.exists);
|
257
254
|
if (req.cookies['hof-wizard-sc'] && req.session.exists !== true) {
|
258
255
|
const err = new Error('Session expired');
|
259
256
|
err.code = 'SESSION_TIMEOUT';
|
package/package.json
CHANGED