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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | common.inc_30.patch | 1.18 KB | fgm |
Comments
Comment #1
fgmG2 uses the builtin
drupal_goto()function, which doesn't do 301 (yet ?) .See http://drupal.org/node/75803
Comment #2
fgmSubmitting patch.
Comment #3
fgmVersion 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).
Comment #4
fgmThe 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.
Comment #5
fgmAlthough 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.
Comment #6
fgmDrupal 5.0 and 6 now support this.
Comment #7
fgmSwitching to the current dev branch
Comment #8
fgmIncluded 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.
Comment #9
(not verified) commented