I'm not sure if this is really a CodeIgniter problem or a browser issue. This happens in Chrome, but not in Safari. However, I would suggest that this should not happen in any browser.
If you go to example.com/foo # containing
redirect('bar');
you expect to end with example.com/bar . Instead, you get to example.com/bar # . I do not understand why the hash does not go away. That doesn't make any sense. What's happening?
source
share