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.
Comment | File | Size | Author |
---|---|---|---|
#4 | 2124465-frontcontroller-alternative-script-name.diff | 1.58 KB | znerol |
Comments
Comment #1
znerol CreditAttribution: znerol commentedAfter 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 beforehook_init
and evenhook_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
Comment #2
znerol CreditAttribution: znerol commentedReopening this. overriding the configuration is regrettably not enough.
Comment #3
znerol CreditAttribution: znerol commentedOk, 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:Comment #4
znerol CreditAttribution: znerol commentedOk, 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...
Comment #5
znerol CreditAttribution: znerol commentedCommitted and pushed: 8f407d4.