[BUGFIX] Fix page reloading on click on preview button
If a preview page is already open, clicking on the "view" button in the content editor window would not reload the page. That means, that the preview page would not show changes if the preview page url and the target url are similar (e.g. only differentiate in hash/query or are exactly the same). This patch looks if a window with the given windowName is already open (looking in `this.windows` did not work well because the existing windows aren't saved in a global context, yet) and compares the URL of an open window (if there's one) with the given URL. If the URLs are similiar (i.e. the origin and the path name are the same) the page will be reloaded. Resolves: #93706 Releases: main, 11.5 Change-Id: Ib3d9e49f56e6ef45df1cd7d82fa58dffb74a3750 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75164 Tested-by:Benjamin Franzke <bfr@qbus.de> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Benjamin Franzke <bfr@qbus.de> Reviewed-by:
Stefan Bürk <stefan@buerk.tech>
Showing
- Build/Sources/TypeScript/backend/form-engine.ts 4 additions, 2 deletionsBuild/Sources/TypeScript/backend/form-engine.ts
- Build/Sources/TypeScript/backend/utility.ts 44 additions, 0 deletionsBuild/Sources/TypeScript/backend/utility.ts
- Build/Sources/TypeScript/backend/window-manager.ts 9 additions, 3 deletionsBuild/Sources/TypeScript/backend/window-manager.ts
- typo3/sysext/backend/Resources/Public/JavaScript/form-engine.js 1 addition, 1 deletion...sysext/backend/Resources/Public/JavaScript/form-engine.js
- typo3/sysext/backend/Resources/Public/JavaScript/utility.js 1 addition, 1 deletiontypo3/sysext/backend/Resources/Public/JavaScript/utility.js
- typo3/sysext/backend/Resources/Public/JavaScript/window-manager.js 1 addition, 1 deletion...ext/backend/Resources/Public/JavaScript/window-manager.js
- typo3/sysext/core/Tests/Acceptance/Application/Frontend/SitemapXmlCest.php 23 additions, 2 deletions.../Tests/Acceptance/Application/Frontend/SitemapXmlCest.php
Please register or sign in to comment