Preview does not include L parameter if not default language
Using T3 4.5.2 and no templavoila, i have the problem that the preview icon link is not correct.
I am in my workspace and in page module. I switch to another language via the dropdown in the top toolbar.
My link looks like this:
http://example.com/typo3/mod.php?id=14 &tx_workspaces_web_workspacesworkspaces[action]=index &tx_workspaces_web_workspacesworkspaces[controller]=Tx_Workspaces_Controller_PreviewController &tx_workspaces_web_workspacesworkspaces[controller]=Preview &M=web_WorkspacesWorkspaces &id=14
Well, id is included twice but no L parameter. SOMEHOW this works with templavoila, i have no idea why...
Updated by Stefan Neufeind almost 10 years ago
code-path for further investigations:
which calls the UriBuilder from Extbase:
It seems that the UriBuilder already generates the id=... at beginning of this link and we could avoid adding it later. Also the controller-parameter is generated in the first place and then manually added again (second parameter, probably overwriting the first one) in the URL mentioned.
The language-parameter is added in
But for some reason it doesn't add the L-parameter there ...
The $viewScript-parameter itself is created in the preProcess-hook called from viewOnClick() and implemented in the workspace-package.