This patch allows developers to disable the GlobalRedirect functionality for a particular browser session by setting a browser cookie "globalredirect" to "off".

Use Cases:

1) We are migrating a site's content to Drupal from static HTML files. Both Drupal and the static content are side-by-side on the same site. After we move a page's content into Drupal, we delete the original static content files from the site, and the old URL gets routed to the new Drupal page by the alias.

Global Redirect prevents us from previewing the node via the file path while the file still exists, so we need to view it by /node/###, which Global Redirect dutifully converts back to our aliased path.

This patch lets us set a cookie in the web browser that will disable Global Redirect for just that browser's session (until the cookie is deleted/expires), allowing us to view/edit/test node content before it goes live.

2) It will allow testing of possible Global Redirect loops or bugs without having to enable/disable the entire module site-wide.

CommentFileSizeAuthor
globalredirect.disablecookie.patch.txt915 bytesdiamondsea
Support from Acquia helps fund testing for Drupal Acquia logo