cotonti.com : [solved] Problem with cot_url https://www.cotonti.com Последние сообщения в теме Cotonti en Wed, 03 Dec 2025 22:58:48 -0000 tensh Thank you very much, works like a charm :)

]]>
пт, 23 ноя 2012 12:46:55 -0000
Alex300 try this:

cot_redirect(cot_url('plug', array('e' => 'offer', 's' => 'details', 'id' => $offid), '', true));

It should work

сot_url() fourth parameter must be 'TRUE' for redirects.

]]>
пт, 23 ноя 2012 09:49:24 -0000
tensh Hi;

The following code:

 

header('Location: '.cot_url('plug', 'e=offer&s=details&id='.$offid));
header('Location: '.cot_url('plug', array('e' => 'offer', 's' => 'details', 'id' => $offid)));

gives me urls with /offer?s=details&id=14 - which don't work.
 
When I use: header('Location: index.php?e=offer&s=details&id='.$offid); - then it works.
 
What am I doing wrong?
 
I also have problem with AJAX urls like admin/config#get;n=edit&o=plug&p=html (should be admin/config?n=edit&o=plug&p=html) - they also don't work at all.
 
Any help please?

 

]]>
пт, 23 ноя 2012 09:30:04 -0000