CodeIgniter Forums

Full Version: redirect not removing the pound sign part of the url
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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.

El Forum

[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.