08-27-2014, 08:20 AM
[eluser]mstdmstd[/eluser]
Hi All,
I have rather a strange problem:
I have a page with http://local-ci22.com/admin/facility/edit/4 url and it is submitted at itself having form definition :
I save the data and want to make redirect at sime page with code like :
But page is redirected at url http://local-ci22.com/-/admin/facility/edit/4/page/1 and I can not find where "-/" is from in rederecting url ?
If redirect with code likeit works ok.
Is it some error redirect function of maybe error in config file?
While relative urls are invalid ?
Which config items are used here ?
Hi All,
I have rather a strange problem:
I have a page with http://local-ci22.com/admin/facility/edit/4 url and it is submitted at itself having form definition :
Code:
<form class="form-horizontal" action="/admin/facility/edit/4/page/1" method="post" accept-charset="utf-8" id="form_facility_edit" name="form_facility_edit" enctype="multipart/form-data">
<input type="hidden" name="csrf_test_name" value="697bb78af9556557cf554cae7a615fc7" />
I save the data and want to make redirect at sime page with code like :
Code:
redirect( '/admin/facility/edit/' . $id );
But page is redirected at url http://local-ci22.com/-/admin/facility/edit/4/page/1 and I can not find where "-/" is from in rederecting url ?
If redirect with code like
Code:
( base_url() . 'admin/facility/edit/' . $id );
Is it some error redirect function of maybe error in config file?
While relative urls are invalid ?
Which config items are used here ?