console/content/view/drh_time_range_stacked_metrics.sql
SELECT 'redirect' AS component,sqlpage.environment_variable('SQLPAGE_SITE_PREFIX') || '/console/content/view/drh_time_range_stacked_metrics.auto.sql' AS link WHERE $stats IS NULL;
SELECT 'redirect' AS component,sqlpage.environment_variable('SQLPAGE_SITE_PREFIX') || '/console/content/view/drh_time_range_stacked_metrics.auto.sql?stats=' || $stats AS link WHERE $stats IS NOT NULL;