php - OpenCart URL redirect with query string not working -
hoping might able give me hand one.
i'm working on customer account area on opencart site , there's section people can delete pets have added inventory. delete functionality works , redirect, message shows in box confirm pet removed, when 1 added. achieve i've added query parameter of "remove=1" url redirect per opencart documentation not seem work.
here code in controller:
$this->load->model('account/pet'); $pet_info = $this->model_account_pet->removepet($this->request->get['pet_id']); if (!isset($pet_info['pet_id'])) { $this->redirect($this->url->link('account/pets', '', 'ssl')); } $this->redirect($this->url->link('account/pets', 'remove=1', 'ssl'));
but when redirects, query string doesn't appear , therefore message not show.
any appreciated,
michael
Comments
Post a Comment