Project

General

Profile

Bug #31996 ยป workspaces_no_query_parameters.diff

Francois Suter, 2011-11-22 16:21

View differences:

Classes/Controller/PreviewController.php
* @return void
*/
public function indexAction() {
// @todo language doesn't always come throught the L parameter
// @todo Evaluate how the intval() call can be used with Extbase validators/filters
$language = intval(t3lib_div::_GP('L'));
// Get all the GET parameters to pass them on to the frames
$queryParameters = t3lib_div::_GET();
// Remove the GET parameters related to the workspaces module and the page id
unset($queryParameters['tx_workspaces_web_workspacesworkspaces']);
unset($queryParameters['M']);
unset($queryParameters['id']);
// Assemble a query string from the retrieved parameters
$queryString = t3lib_div::implodeArrayForUrl('', $queryParameters);
$controller = t3lib_div::makeInstance('Tx_Workspaces_Controller_ReviewController', TRUE);
/** @var $uriBuilder Tx_Extbase_MVC_Web_Routing_UriBuilder */
......
$wsSettingsUrl = $wsSettingsPath . $wsSettingsUri . $wsSettingsParams;
$viewDomain = t3lib_BEfunc::getViewDomain($this->pageId);
$wsBaseUrl = $viewDomain . '/index.php?id=' . $this->pageId . '&L=' . $language;
$wsBaseUrl = $viewDomain . '/index.php?id=' . $this->pageId . $queryString;
// @todo - handle new pages here
// branchpoints are not handled anymore because this feature is not supposed anymore
    (1-1/1)