The current version of G2 uses Temporary Redirects (HTTP 302) to automatically link to a node page when only one homonym is found and the "Enable auto-jump to single match" feature is enabled on the admin/settings/g2 page. It is enabled by default.

Since these redirects are built from a database query over a varying set of definitions, they are indeed temporary. However, due to the HTTP 302 search engine exploit, some webmasters might prefer to use Permanent Redirects (HTTP 301) for fear of search engine blacklisting.

CommentFileSizeAuthor
#2 common.inc_30.patch1.18 KBfgm

Comments

fgm’s picture

G2 uses the builtin drupal_goto() function, which doesn't do 301 (yet ?) .

See http://drupal.org/node/75803

fgm’s picture

Version: 4.7.x-1.x-dev » master
StatusFileSize
new1.18 KB

Submitting patch.

fgm’s picture

Assigned: fgm » Unassigned
Status: Active » Needs review

Version 1.15.2.8 adds manual support for this behaviour, until http://drupal.org/node/75803 is committed.

Look in the code for $redirect_type (near line 2142).

fgm’s picture

Status: Needs review » Postponed

The required core patch has been applied to Drupal 5.0, but the backport to 4.7 has been rejected, so this update is postponed until a 5.0 version of G2 is created.

fgm’s picture

Version: master » 4.7.x-1.x-dev

Although the needed core patch (http://drupal.org/node/75803) has be requested again for other needs, it has been rejected again, so the G2 patch stays postponed until a 5.0 version of G2 is created.

fgm’s picture

Version: 4.7.x-1.x-dev » master
Status: Postponed » Active

Drupal 5.0 and 6 now support this.

fgm’s picture

Version: master » 6.x-1.x-dev
Assigned: Unassigned » fgm

Switching to the current dev branch

fgm’s picture

Status: Active » Fixed

Included in today's version v1.19.2.2.

The code had actually been there for ages, but commented out due to http://drupal.org/node/75803 rejection for 4.7.

Anonymous’s picture

Status: Fixed » Closed (fixed)