Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit de1461d

Browse files
Diego Plentzpetebacondarwin
Diego Plentz
authored andcommitted
docs(guide/$location) remove duplicate 'Crawling your app' section
The "Crawling your app" section was duplicated. I just removed the duplication and moved the section to the 'Caveats' section. Closes #7244
1 parent 2866daf commit de1461d

File tree

1 file changed

+14
-28
lines changed

1 file changed

+14
-28
lines changed

docs/content/guide/$location.ngdoc

+14-28
Original file line numberDiff line numberDiff line change
@@ -237,20 +237,6 @@ it('should show example', inject(
237237
));
238238
```
239239

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-
254240
## HTML5 mode
255241

256242
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
344330
Using this mode requires URL rewriting on server side, basically you have to rewrite all your links
345331
to entry point of your application (e.g. index.html)
346332

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-
361333
### Relative links
362334

363335
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.
525497
Note that the `!` prefix in the hashbang mode is not part of `$location.path()`; it is actually
526498
hashPrefix.
527499

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+
528514

529515
# Testing with the $location service
530516

0 commit comments

Comments
 (0)