Welcome Guest, Not a member yet? Register   Sign In
Question mark in URL
#1

[eluser]flyenig[/eluser]
I upgraded to 2.0 and now there is a problem.

My urls used to be this...
http://localhost/cl/home

and now they turn to this...
http://localhost/cl/?home

I fixed that by changing $config['enable_query_strings'] to FALSE.

here is the main problem...
I have a function in one of my controllers that returns json data.
http://localhost/cl/home/json?tag=j

This wont work any more. how can i make both of these work at the same time?


Thanks!
#2

[eluser]Eric Barnes[/eluser]
Have you tried the new $config['allow_get_array'] = TRUE;

That should allow it work just like your second example.
#3

[eluser]flyenig[/eluser]
Yea I tried it and it redirects the URL
http://localhost/cl/home/json?tag=j

to


http://localhost/cl/home/
#4

[eluser]Eric Barnes[/eluser]
In that case you may want to download from bitbucket as I seem to remember a bugfix but not sure if it is related Sad
#5

[eluser]InsiteFX[/eluser]
Eric, when you mention bitbucket are you referring to Codeigniters bitbucket
or the reactors bitbucket?

InsiteFX
#6

[eluser]Eric Barnes[/eluser]
Reactors. The core hasn't seen but one update since 2.0 has been announced.
#7

[eluser]nuclearmaker[/eluser]
just download latest version from reactor.
i face same problem last week.
#8

[eluser]Jaketoolson[/eluser]
check and paste your .htacess file
#9

[eluser]Shmee[/eluser]
I get the same problem.

I have $config[‘enable_query_strings’] set to TRUE, so I can more easily randomize my AJAX calls, so IE will not cache them, so the URL looks like "?c=controller&m=function&random;_number", which is fine for my URLs running in the background, but then having it add the question mark all over the place screws will the rest of my URLs that everyone sees.




Theme © iAndrew 2016 - Forum software by © MyBB