Global Redirect reduces content with duplicated URLs by redirecting internal paths (like node/1) to aliased paths (e.g. about/us).

When the setting Frontpage Redirect Handler is enabled, ...

... any request to the frontpage path will redirect to the site root. Whatever you set as the path of the front page on the Site Information settings page will redirect to the site root (e.g. "node" or "node/1" and also its alias (e.g. in case you have set "node/1" as your home page but that page also has an alias "home")).

The problem is that this setting interferes fragments rendered with the authcache personalization front controller.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

znerol’s picture

Issue summary: View changes
Status: Active » Fixed

After some refactoring this feature became very easy to implement: It is now possible to selectively override variables (i.e. global $conf) for code running in the personalization front controller. The override takes place before hook_init and even hook_boot is called. Therefore the only thing necessary to make Global Redirect not interfere with fragments rendered through the personalization front controller is to disable it via config overrides.

Committed and pushed 1cd4f5b

znerol’s picture

Status: Fixed » Active

Reopening this. overriding the configuration is regrettably not enough.

znerol’s picture

Ok, I can offer a work around for now. When using the safe front controller, global redirect will detect, that the request did not go to index.php and will not issue any redirects. Copy the file modules/authcache_p13n/safe_frontcontroller/authcache.php to your drupal root and add the following line to your settings.php:

$conf['authcache_p13n_frontcontroller_path'] = 'authcache.php';
znerol’s picture

Status: Active » Needs review
FileSize
1.58 KB

Ok, let's see if we simply can rewrite the script-file name of the personalization front-controller from index.php to (the factious) authcache.php. Manual testing with lighttpd/apache does not reveal any problems...

znerol’s picture

Status: Needs review » Fixed

Committed and pushed: 8f407d4.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.