Skip to content
Snippets Groups Projects
Commit 6cdf26cd authored by Tobias Jungmann's avatar Tobias Jungmann Committed by Stefan Bürk
Browse files

[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: default avatarBenjamin Franzke <bfr@qbus.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarBenjamin Franzke <bfr@qbus.de>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
parent 4a18072a
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment