/**
 * Router for opening query when session is initialized
 */
var QueryRouter = Backbone.Router.extend({
    routes: {
        'query/open/:query_name': 'open_query'
    },
    
    open_query: function(query_name) {
        Settings.ACTION = "OPEN_QUERY";
        var query = new SavedQuery(_.extend({ name: query_name }, Settings.GET));
        query.fetch({ success: query.move_query_to_workspace });
    }
});

Saiku.routers.push(new QueryRouter());
/**
 * Router for opening query when session is initialized
 */
var QueryRouter = Backbone.Router.extend({
    routes: {
        'query/open/:query_name': 'open_query'
    },
    
    open_query: function(query_name) {
        Settings.ACTION = "OPEN_QUERY";
        var options = { 
            name: query_name,
            solution: Settings.GET.SOLUTION || "",
            path: Settings.GET.PATH || "",
            action: Settings.GET.ACTION || "",
            biplugin: true
        };
        var query = new SavedQuery(options);
        query.fetch({ success: query.move_query_to_workspace });
    }
});

Saiku.routers.push(new QueryRouter());
Send parameters as lowercase. Can't test because demo server is unavailable.
Send parameters as lowercase. Can't test because demo server is
unavailable.