Answer the question
In order to leave comments, you need to log in
/# appeared in the url addresses of the site, can this be removed?
There is a site on which, because of the widget on the pages, the page address changes, more precisely, mysite.ru /.../#... is added to the address like mysite.ru /.../ and so on each page with the widget. Tell me, can you remove it so that the address is not added or comment out all pages starting with # in the robots.txt file. I did this:
Dissalow: /#
Dissalow: /*/#
Dissalow: /*/*/#
I don't know if it works... And tell me how it affects seo
Answer the question
In order to leave comments, you need to log in
These are anchors for references to document identifiers. A handy thing for navigating the page and for passing client parameters without cookies. They work exclusively on the client and do not get to the server. To remove them, you need to add something like this js:
$(window).on('hashchange', function() {
window.location.hash = null;
});
$(window).on('hashchange', function() {
if (window.location.hash == '#') {
window.location.hash = null;
}
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question