<?php
namespace MOC\Redirects\Controller;

use TYPO3\Flow\Annotations as Flow;
use TYPO3\Neos\Service\LinkingService;
use TYPO3\TYPO3CR\Domain\Model\Node;

class RedirectController extends \TYPO3\Flow\Mvc\Controller\ActionController {

	/**
	 * @Flow\Inject
	 * @var LinkingService
	 */
	protected $linkingService;

	/**
	 * @param Node $node
	 * @return void
	 *
	 * @Flow\IgnoreValidation("node")
	 */
	public function redirectAction(Node $node) {
		$this->redirectToUri($this->linkingService->createNodeUri($this->controllerContext, $node, NULL, NULL, TRUE, array(), '', TRUE), 0, 301);
	}

}

<?php
namespace MOC\Redirects\Controller;

use TYPO3\Flow\Annotations as Flow;
use TYPO3\Neos\Service\LinkingService;
use TYPO3\TYPO3CR\Domain\Model\Node;

class RedirectController extends \TYPO3\Flow\Mvc\Controller\ActionController {

	/**
	 * @Flow\Inject
	 * @var LinkingService
	 */
	protected $linkingService;

	/**
	 * @param Node $node
	 * @return void
	 *
	 * @Flow\IgnoreValidation("node")
	 */
	public function redirectAction(Node $node) {
		$this->redirectToUri($this->linkingService->createNodeUri($this->controllerContext, $node), 0, 301);
	}

}
--- 
+++ 
@@ -20,7 +20,7 @@
 	 * @Flow\IgnoreValidation("node")
 	 */
 	public function redirectAction(Node $node) {
-		$this->redirectToUri($this->linkingService->createNodeUri($this->controllerContext, $node), 0, 301);
+		$this->redirectToUri($this->linkingService->createNodeUri($this->controllerContext, $node, NULL, NULL, TRUE, array(), '', TRUE), 0, 301);
 	}
 
 }
[TASK] Append existing query string to redirects