Answer the question
In order to leave comments, you need to log in
Does _escaped_fragment_ work with HTML5 URLs?
Good afternoon
Front-end is written in AngualrJS (one-pager) - wherever you go everywhere in the page code.
HTML5 addresses are used: /order/ , /product/name , etc. Content is loaded from templates that are collected on the client, data is taken from the API product
_escaped_fragment_ only understands #!/product/name links or HTML5 addresses also /product/name ?
Does _escaped_fragment_ work the same for Google and Yandex, or are there some peculiarities?
Answer the question
In order to leave comments, you need to log in
only #!/product/name and only if there is a meta tag. Works the same for both Google and Yandex and bing. For links like /product/name this doesn't make much sense.
If you use the HTML5 routing mode
Then for proper search indexing, you should include a meta tag in the page code:
For example, if the page is available at www.example.com/blog and contains the meta tag , then the robot will index the HTML version of the page at www.example.com/blog?_escaped_fragment_= .
Note.
In the HTML version of the document, the meta tag should not be placed: in this case, the page will not be indexed.
This is true for both Yandex and Google.
Why do you need _escaped_fragment_ if /product/name has already gone to the server?
evilbloodydemon.ru/blog/2014/11/diy-angularjs-seo-... - here is a great solution
Only #!/product/name
_escaped_fragment_ works the same for Google and Yandex, or are there any peculiarities?
There are features:
1) For Yandex, it is important that the main (index page) has a canonical url, for example, register in the index controller
$('head').append('<link rel="canonical" href="http://xxx.ru/#!/" />');
Otherwise, it does not index the main page (perhaps this can be treated with point 2) Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question