@@ -237,20 +237,6 @@ it('should show example', inject(
237
237
));
238
238
```
239
239
240
- ### Crawling your app
241
-
242
- To allow indexing of your AJAX application, you have to add special meta tag in the head section of
243
- your document:
244
-
245
- ```html
246
- <meta name="fragment" content="!" />
247
- ```
248
-
249
- This will cause crawler bot to request links with `_escaped_fragment_` param so that your server
250
- can recognize the crawler and serve a HTML snapshots. For more information about this technique,
251
- see [Making AJAX Applications
252
- Crawlable](http://code.google.com/web/ajaxcrawling/docs/specification.html).
253
-
254
240
## HTML5 mode
255
241
256
242
In HTML5 mode, the `$location` service getters and setters interact with the browser URL address
@@ -344,20 +330,6 @@ are not prefixed with `.` and will not be intercepted by the `otherwise` rule in
344
330
Using this mode requires URL rewriting on server side, basically you have to rewrite all your links
345
331
to entry point of your application (e.g. index.html)
346
332
347
- ### Crawling your app
348
-
349
- If you want your AJAX application to be indexed by web crawlers, you will need to add the following
350
- meta tag to the HEAD section of your document:
351
-
352
- ```html
353
- <meta name="fragment" content="!" />
354
- ```
355
-
356
- This statement causes a crawler to request links with an empty `_escaped_fragment_` parameter so that
357
- your server can recognize the crawler and serve it HTML snapshots. For more information about this
358
- technique, see [Making AJAX
359
- Applications Crawlable](http://code.google.com/web/ajaxcrawling/docs/specification.html).
360
-
361
333
### Relative links
362
334
363
335
Be sure to check all relative links, images, scripts etc. You must either specify the url base in
@@ -525,6 +497,20 @@ forward slash if it is missing.
525
497
Note that the `!` prefix in the hashbang mode is not part of `$location.path()`; it is actually
526
498
hashPrefix.
527
499
500
+ ## Crawling your app
501
+
502
+ To allow indexing of your AJAX application, you have to add special meta tag in the head section of
503
+ your document:
504
+
505
+ ```html
506
+ <meta name="fragment" content="!" />
507
+ ```
508
+
509
+ This will cause crawler bot to request links with `_escaped_fragment_` param so that your server
510
+ can recognize the crawler and serve a HTML snapshots. For more information about this technique,
511
+ see [Making AJAX Applications
512
+ Crawlable](http://code.google.com/web/ajaxcrawling/docs/specification.html).
513
+
528
514
529
515
# Testing with the $location service
530
516
0 commit comments