简体   繁体   中英

Typo3 Neos Redirect to Backend

I got question about example site on Typo3 Neos. There is create an account, and i tested it on backend. After submitting, the page return to backend again. But when i try to make a form just like that, the return target is to the route, not to the backend. How can i achieve same return like example?

Even though i already implement same code like example.

$uriBuilder = new UriBuilder(); 
$uriBuilder->setRequest($this->request->getParentRequest()); 
$redirectUri = $uriBuilder ->setCreateAbsoluteUri(TRUE)
                           ->uriFor('index', array('username' => $accountIdentifier), 'Login', 'TYPO3.Neos'); 
$this->redirectToUri($redirectUri);

Edit: I got an error from 'action', the path he's trying to do is " http://domain/Route/Action/ ", that should be only "Action". Care to explain?

Any help would be much appreciated. :)

got the answer

$this->redirect("youraction");

thanks!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM