AjaxLinks

Name

AjaxLinks -- defines whether to store AJAX links with hash fragments

indexer.conf

Synopsis

AjaxLinks {yes | no}

Description

Normally, before storing an URL to the database, indexer cuts the URL anchor part starting with the # character. AjaxLinks set to yes tells indexer to recognize AJAX-style URLs and preserve their hash fragments, that is the fragments starting with #! (a hash followed by an exclamation mark).

Note: If the anchor part starts with a # not followed by a !, it's still considered to be a usual anchor and is not preserved, even if AjaxLinks is set to yes.

To make indexer download different content for the AJAX URLs having the same path and file name but different hash fragments, the AJAX links can be translated from the "pretty" to the "ugly" format with help of the Alias command:


Alias regex "(http://[^/]*/)#!(.*)" "$1?_escaped_fragment_=$2"
So

http://www.example.com/page?query#!key=value
becomes

http://www.example.com/page?query&_escaped_fragment_=key=value
right before downloading.

Note: Note, the remote AJAX site must support the "ugly" format to make this translation work.

The default value is no.

Examples


UsePolularity no

See also

Alias, FollowLinks, ReverseAlias.