CodeIgniter Forums
problem with URI segment while navigating - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: problem with URI segment while navigating (/showthread.php?tid=44379)



problem with URI segment while navigating - El Forum - 08-12-2011

[eluser]codecombustor[/eluser]
I am trying to modify a current cms done in CI....however i've never used CI before....actually i am having problem with URI segments...links aren't working properly....from the index page, after i click on any link it navigates once and when i try to select any other link again the URI segment keeps on adding infinitely....
its strange i have checked the config.php and routes.php files and everything seems okay


http://localhost/xyz/

- after i select a link for example

http://localhost/xyz/index.php/welcome/cat/3

- and if i further select a link at this point :

http://localhost/xyz/index.php/welcome/cat/index.php/welcome/cat/index.php/welcome/index.php/welcome.... and goes on


problem with URI segment while navigating - El Forum - 08-12-2011

[eluser]CI_adis[/eluser]
How are the links defined? Can you post the code used to generate links?
You can read more about links in the documentation