CodeIgniter Forums
Redirect within controller!!! - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: External Resources (https://forum.codeigniter.com/forum-7.html)
+--- Forum: Addins (https://forum.codeigniter.com/forum-13.html)
+--- Thread: Redirect within controller!!! (/thread-74102.html)



Redirect within controller!!! - JigneshTapase - 07-22-2019

Hello!

I found a chatbot to add to my site and it works but the issue is that it redirects to my landing page (which was the original welcome message page). Im believe I have to change something within the contoller but dont know where. Trying to fix it that when I hit submit instead  of going to another page the comment/words are in the message board. Here is the git Im using:

https://github.com/afiefsky/chatapp-codeigniter-ajax

Where do I make the change?


RE: Redirect within controller!!! - InsiteFX - 07-23-2019

From what I saw all of the redirecting is being done in the Chat controller index method.

The is also a Chat redirect method so it must be in one of them.