CodeIgniter Forums
redirect not removing the pound sign part of the url - 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: redirect not removing the pound sign part of the url (/showthread.php?tid=11150)



redirect not removing the pound sign part of the url - El Forum - 08-28-2008

[eluser]xwero[/eluser]
I noticed when i have a url like site.com/user/1#tab1 and i do
Code:
redirect('user')
the url becomes site.com/user#tab1.

It's a aesthetic problem for the app i'm developing but i can think of scenarios where it will be a critical problem.


redirect not removing the pound sign part of the url - El Forum - 08-28-2008

[eluser]Pascal Kriete[/eluser]
I can't reproduce this. At first glance I would attribute it to the browser and not CI.

I'm pretty sure the redirect gets sent without the hash, so it's up to the browser to redirect it properly.