A
A
Alexey Kuzmin2015-02-04 10:42:11
JavaScript
Alexey Kuzmin, 2015-02-04 10:42:11

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

5 answer(s)
S
Sergey Protko, 2015-02-04
@DrMartiner

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.

N
Novel, 2015-02-11
@uaKorona

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.

M
mayorovp, 2015-02-04
@mayorovp

Why do you need _escaped_fragment_ if /product/name has already gone to the server?

A
Alexey Kuzmin, 2015-02-08
@DrMartiner

evilbloodydemon.ru/blog/2014/11/diy-angularjs-seo-... - here is a great solution

V
vkdv, 2017-08-02
@vkdv

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)
2) in the nginx config, you need to make a canonical redirect from www to http (or vice versa) return 301 http://www.example.com$request_uri; otherwise Google will be harmful. You can also specify the main domain in Google Master, mb this will be enough

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question