Bug #92403
closedOpening preview from backend does open a new window all the time (workspace)
0%
Description
When using the preview button inside the page module, a new window (tab) is opened.
When not in workspace, this window is reused and focuses when pressing the button again.
When inside a workspace (not live) on a new page that is not published yet, a new window is opened every time.
I couldn't find the cause of the issue. The JS looks like the same.
Maybe the issue is caused by some JS when showing the preview of a new page.
Updated by Stefan Froemken 8 months ago
- Status changed from New to Closed
Hello Daniel,
we just had the same issue. Costs me some hour to find out the problem.
Have a look into the browser network tool. There is a redirect from:
https://www.my-site.net/typo3/workspace/preview-control/?token=hash-123abc
to:
https://www.my-site.net/typo3/workspace/preview-control?token=hash-123abc
In our cases there was a .htaccess entry like:
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} (.+)/$ RewriteRule ^ %1 [R=301,L]
It removes the trailing slash. After removing that part, the preview works again.
So, no TYPO3 issue so far. I will close this issue. Feel free to re-open it, if you think I'm wrong.
Stefan