Closed (fixed)
Project:
G2 Glossary
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
27 Jul 2006 at 06:58 UTC
Updated:
8 Sep 2007 at 13:21 UTC
Jump to comment: Most recent file
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