Issue Bug Closed

#91915View button in TCEForm does not refresh and focus frontend tab

Andreas Kießling 08/01/20, 16:20 updated 12/02/25, 14:36

Description

In a tt_content element, the view button is simply a link to the current page with an anchor.
On subsequent saves and hitting the view button, the frontend does not refresh, and keeps showing the previous state.

Previously, the window also received the focus which does not seem to work reliable anymore.

Browsers: current versions of Chrome and Firefox
TYPO3 10.4.6

Reviews 2

Files 5

History 1113

  1. Riccardo De Contardi commented <span data-processor="relativetime" data-value="2020-12-06T15:19:39+00:00" > 12/06/20, 15:19 </span>

    I tested and reproduced it on latest master (11.0.0-dev) with the following procedure

    1) Page view > select a page with a content element with an Header
    2) click on the content element icon > show

    result: a different tab opens and show the frontend page with the content element.

    3) click on the content element icon > edit
    4) change the Header, save and close
    5) click on the content element icon > show

    result: you switch to the previously opened tab, but the content is not changed

    —-

    The same issue does not seem to occur with this procedure:
    1) Page view > select a page with a content element with an Header
    2) click on the content element icon > edit
    3) Click on the View button on the top

    result: a different tab opens and show the frontend page with the content element.

    4) change the Header, save
    5) Click again on the view button

    result: you switch to the previously opened tab, and it refreshes itself so the content is changed

    Please let us know if you use different steps or there are scenarios I am missing

  2. Jörn Wagner commented <span data-processor="relativetime" data-value="2020-12-15T11:29:05+00:00" > 12/15/20, 11:29 </span>

    Riccardo De Contardi wrote in #note-3:

    > The same issue does not seem to occur with this procedure:
    > 1) Page view > select a page with a content element with an Header
    > 2) click on the content element icon > edit
    > 3) Click on the View button on the top
    >
    > result: a different tab opens and show the frontend page with the content element.
    >
    > 4) change the Header, save
    > 5) Click again on the view button
    >
    > result: you switch to the previously opened tab, and it refreshes itself so the content is changed
    >
    > Please let us know if you use different steps or there are scenarios I am missing

    No, that still does not refresh the page for me. As long as you click the “view” button on the content element page, it opens the window with an anchor and does not refresh. It does work on “Save & Close” (or rather, “Close” while acknowledging the popup to save changes), because then you’re back on the backend layout and the view icon does not include an anchor.

    I think some JavaScript would have to be triggered to get both the refresh and anchor feature.

  3. Jörn Wagner commented <span data-processor="relativetime" data-value="2020-12-15T12:48:12+00:00" > 12/15/20, 12:48 </span>

    Okay, so I’ve tried to add some JavaScript in the FormEngine.js on line 980:

    window.open(‘’, ‘newTYPO3frontendWindow’).location.reload();

    That would do the trick, but unfortunately the browser doesn’t like this if the backend domain does not match the frontend domain:

    FormEngine.js?bust=redacted:980 Uncaught DOMException: Blocked a frame with origin “https://backend-domain.example.org” from accessing a cross-origin frame.

    Edit: Obviously, this needs to be added in lines 996 and 1004 as well.

  4. Stig Nørgaard Færch commented and changed TYPO3 Version 10 9 <span data-processor="relativetime" data-value="2021-01-27T09:23:56+00:00" > 01/27/21, 09:23 </span>

    Can confirm this on 9.5.23 as well.
    The funny thing is that it is not a problem on my Macbook on Firefox and Chrome. The same goes for BrowserStack with Chrome.
    But it is a problem on my colleagues Windows computers.

  5. Mohamed Masmoudi commented <span data-processor="relativetime" data-value="2023-03-06T10:48:56+00:00" > 03/06/23, 10:48 </span>

    I have the same issue in Multisite project. The first click will work but when i get back to the backend tab and do some changes save and then i click view. the frontend will not refresh.
    TYPO3 11.5.23

    In the console i see this : Uncaught DOMException: Blocked a frame with origin "https://subdomain.***.info" from accessing a cross-origin frame.
  6. Riccardo De Contardi commented and changed attached cattura-1.png attached cattura-2.png attached cattura-3.png attached cattura-4.png attached cattura-5.png <span data-processor="relativetime" data-value="2025-04-02T10:36:16+00:00" > 04/02/25, 10:36 </span>

    I repeated my test on comment 3 on the latest main (14.0.0-dev) and found the following results:

    1. View button on the content element (cattura-1.png): triggers refresh on the tab with the frontend “preview”

    !cattura-1.png!
    —-

    2. View button on the page view, on the top (cattura-2.png): triggers refresh on the tab with the frontend “preview” (same on List view and Info view)

    cattura-2.png

    —-

    3. Page view > View button inside the “kebab icon” on the CE (cattura-3.png): DOES NOT trigger refresh on the tab with the frontend “preview”

    cattura-3.png

    —-

    4. List view > View button inside the “kebab icon” on the CE (cattura-4.png): triggers refresh on the tab with the frontend “preview”

    !cattura-4.png!
    —-

    4. Info view > Pagetree overview > View button on the CE row (cattura-5.png): triggers refresh on the tab with the frontend “preview”

    !cattura-5.png!
    —-

    I’ve not tested it on a multisite environment, though.

  7. Andreas Nedbal commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-06-26T13:10:08+00:00" > 06/26/25, 13:10 </span>

    Applied in changeset commit:77c532cd3aa3841ba513edb4ef861a22cf8d5673.