When a site is in maintenance mode, Drupal seems to redirect non-permissioned users to the front page instead of a maintenance template page with the Front Page module.

Not quite sure why, but maybe it's related to:

"This function will log the current user out and redirect to front page if the current user has no 'access site in maintenance mode' permission."

In either case, my solution was to add this around line 110 (sorry, not access to patch tools right now):

// Site is in offline mode - don't redirect
if (variable_get('maintenance_mode', 0)) {

Maybe this should be an admin option (don't redirect if site is in maintenance mode) - not sure if there is a case where the Front Page module should work under maintenance?

Ensemble Coworking Space New York


Simon Georges’s picture

Status: Active » Fixed

Makes sense. Committed, you're credited. Thanks!

Status: Fixed » Closed (fixed)

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