Answer the question
In order to leave comments, you need to log in
What do the symbols #! in the URL of some sites?
Recently, more and more often I see them coming right after the domain:
-> music.yandex.ru/#!/album/10030
-> twitter.com/#!/KremlinRussia
Is this a link to some server script? But why exactly, what is the advantage?
I remember twitter used to have addresses without this pair, and now they have ...
Answer the question
In order to leave comments, you need to log in
a simple hash navigation example (the dynamic part of the page loads via ajax without reloading the main container)! is needed in order to distinguish a regular anchor from a link. By the way, with the release of history.pushstate , there is no need for such links anymore. The truth is not yet supported by the opera and, accordingly, no.
The part after the hash mark once served as a link to a specific part of the page. On Habré, this is still the case - click on the link with the number of comments under the topic. If there is a tag in the page code
<a name="comments" …/>
, then when opening an address ending in #comments, the browser will scroll the page to this link. And this is also done so that Google can index AJAX-based sites
code.google.com/intl/ru-RU/web/ajaxcrawling/docs/specification.html
This means the idiocy of the developers: habrahabr.ru/blogs/webdev/113842/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question