Why doesn't CodeIgniter redirection remove the hash / pound (#) at the end of the url?

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?

+5
source share
2 answers

. - script. Code Igniter, PHP script , #. , , , #. #sign . #, . js , .

, HTTP , , hastag

+5

, :

redirect('bar', 'refresh');
+10

All Articles