Permalink
Browse files

more on ad edit route fix

  • Loading branch information...
1 parent b47e91d commit af5284e990bc8dac3d4d64c6f394535fabd9c4ed @jipipayo jipipayo committed Apr 16, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 application/controllers/AdController.php
@@ -171,6 +171,7 @@ public function listallAction()
$paginator->setCurrentPageNumber($page);
$this->view->paginator = $paginator;
+ $this->view->paginator = $paginator;
}
@@ -301,7 +302,7 @@ public function showAction()
$this->view->metaDescription = $this->view->page_title . '. ' . $this->view->ad['body'];
//add link rel canonical , better seo
- $this->view->canonicalUrl = 'http://' . $_SERVER['HTTP_HOST'] . '/' . $this->lang . '/ad/show/id/' . $id . '/' .
+ $this->view->canonicalUrl = 'http://' . $_SERVER['HTTP_HOST'] . '/' . $this->lang . '/ad/' . $id . '/' .
$this->view->slugTitle($this->view->ad['title']);
//if user logged in, show the comment form, if not show the login link
@@ -550,7 +551,7 @@ public function editAction()
$this->_helper->_flashMessenger->addMessage($this->view->translate('Ad edited succesfully!'));
- $this->_redirect('/' . $this->lang . '/ad/show/id/' . $id);
+ $this->_redirect('/' . $this->lang . '/ad/' . $id);
} else {
$id = $this->_getParam('id');

0 comments on commit af5284e

Please sign in to comment.