Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 157 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

The App_Offline page for every new SE site except AskUbuntu don't redirect to the Sketchy offline page.

share|improve this question
up vote 2 down vote accepted

I'll be watching for the next offline event to test.

share|improve this answer

This bug is caused by the following code:

var hostHash = new Object();
var hostName = window.location.hostname;
var sstaticOffline = 'http://sstatic.net/';
var returnUrl = window.location;        

function goOffline() {
    hostHash[sstaticOffline + 'stackoverflowmeta/app_offline.htm'] = 'meta\.stackoverflow';
    hostHash[sstaticOffline + 'stackoverflow/app_offline.htm'] = 'stackoverflow';
    hostHash[sstaticOffline + 'serverfault/app_offline.htm'] = 'serverfault';
    hostHash[sstaticOffline + 'superuser/app_offline.htm'] = 'superuser';
    hostHash[sstaticOffline + 'skins/sketchy/app_offline.htm'] = 'stackexchange';
    hostHash[sstaticOffline + 'stackapps/app_offline.htm'] = 'stackapps';
    hostHash[sstaticOffline + 'skins/sketchy/app_offline.htm'] = 'askubuntu';

    for (var entry in hostHash) {            
        var regEx = new RegExp(hostHash[entry]);

        if (regEx.test(hostName)) {
            window.location = entry + '?return=' + escape(returnUrl);    
            return;           
        }
    }
}

$().ready(function () {
    goOffline();
    $('#return').attr('href', returnUrl);
});

Specifically, it's caused by the two lines

hostHash[sstaticOffline + 'skins/sketchy/app_offline.htm'] = 'stackexchange';
...
hostHash[sstaticOffline + 'skins/sketchy/app_offline.htm'] = 'askubuntu';

It tries to set two different values to the same key, so the 'stackexchange' value is overwritten.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .