Skip to content

Commit

Permalink
#211 - improved the logic of the redirect used in the ArticleControll…
Browse files Browse the repository at this point in the history
…er::doPUT() method
  • Loading branch information
alphadevx committed Sep 15, 2015
1 parent 06f69d2 commit 4072426
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Alpha/Controller/ArticleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,8 @@ public function doPUT($request)
if ($this->request->isSecureURI()) {
$response->redirect(FrontController::generateSecureURL('act=Alpha\\Controller\\ActiveRecordController&ActiveRecordType=Alpha\Model\Article&ActiveRecordOID='.$record->getOID().'&view=edit'));
} else {
$response->redirect($config->get('app.url').'/a/'.$params['title'].'/edit');
$title = str_replace(' ', $config->get('cms.url.title.separator'), $record->get('title'));
$response->redirect($config->get('app.url').'/a/'.$title.'/edit');
}
}

Expand Down

0 comments on commit 4072426

Please sign in to comment.