Hash sign on facebook urls

I wonder why facebook.com (hypem.com, etc.) chooses the hash mark after the domain to access other files. eg http://www.facebook.com/#!/reqs.php#event (#! / reqs.php).

What is the reason and they map them to javascript?

+2


a source to share


3 answers


0


a source


Mostly hash mark is used in URLs, so when you visit it, you are taken to a specific location on the page without manually scrolling.



0


a source


They do it this way, for example, when you, for example, take a photograph and you click the "Next" button. This makes an ajax request and gets the next photo. The problem is that the request doesn't change the url and the user won't be able to add that new url!

Thus, they use the base portion of the url to store these query string values.

0


a source







All Articles