Project

General

Profile

Actions

Bug #92403

closed

Opening preview from backend does open a new window all the time (workspace)

Added by Daniel Siepmann over 3 years ago. Updated 8 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2020-09-25
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.

Actions #1

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

Actions

Also available in: Atom PDF