Welcome Guest, Not a member yet? Register   Sign In
url brocken / become /2F
#1

I upgraded from CI4.1 or 2 (not sure) to CI4.3
I install a fresh installation and copy views, models controllers etc...

I noticed that lot of change break the code specialy the url. Before I had site_url('controller/method') but the url became like
?%2Fen%2Fgestion%2Flogin%2Flogincheck= / --> %2F I notice I have a ? added and = at the end. 
My solution was to replace site_url by base_url and my / stay /
Now I still have the problem with form_open
Example   echo form_open("/login/logincheck");
--> %2Flogin%2Flogincheck=
How to keep url correctly as I want not as codeigniter wants.
Where do I know all code I need to change like site_url is not valid but replaced by base_url

Maybe I just have to find the correct parameter and all will works as before in previous version.
CodeIgniter 4.1.9
Reply


Messages In This Thread
url brocken / become /2F - by cb21 - 02-04-2023, 02:58 AM
RE: url brocken / become /2F - by kenjis - 02-04-2023, 04:44 AM
RE: url brocken / become /2F - by cb21 - 02-04-2023, 06:24 AM
RE: url brocken / become /2F - by cb21 - 02-04-2023, 12:29 PM
RE: url brocken / become /2F - by kenjis - 02-04-2023, 09:50 PM
RE: url brocken / become /2F - by cb21 - 02-05-2023, 07:07 AM
RE: url brocken / become /2F - by kenjis - 02-05-2023, 03:53 PM
RE: url brocken / become /2F - by cb21 - 02-11-2023, 08:08 AM
RE: url brocken / become /2F - by InsiteFX - 02-12-2023, 12:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB