CodeIgniter Forums
[FIXED] base url getting '?' appended in 2.0 reactor - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: [FIXED] base url getting '?' appended in 2.0 reactor (/showthread.php?tid=38527)



[FIXED] base url getting '?' appended in 2.0 reactor - El Forum - 02-10-2011

[eluser]matt2012[/eluser]
For example in a form view I have action="/login"

when I open the page in a browser and look at the source I get my.domain.com/?login which is redirecting to home page.


[FIXED] base url getting '?' appended in 2.0 reactor - El Forum - 02-10-2011

[eluser]matt2012[/eluser]
This problem was due to me using the config code from my 1.7.2 site which had
Code:
$config['enable_query_strings'] = TRUE;

in 2.0 to prevent this behaviour we should have
Code:
$config['enable_query_strings'] = FALSE;
we can use this instead
Code:
$config['allow_get_array']        = TRUE;


There is no mention of this in

http://ellislab.com/codeigniter/user-guide/installation/upgrade_200.html