public override void Execute(CommandContext context)
        {
            if (context.Items[0] == null)
            {
                return;
            }

            ScopeToThisHelper.ScopedItem = string.Empty;

            var topNode = context.Items[0].Database.GetItem(SitecoreNode);
            var url     = ScopeToThisHelper.GetUrl(topNode);

            SheerResponse.SetLocation(url);
        }
        protected override void OnLoad(EventArgs e)
        {
            if (!string.IsNullOrEmpty(ScopeToThisCommand.ScopedItem) && HttpContext.Current.Request.QueryString["redirect"] == null)
            {
                var scopeItem = Context.Database.GetItem(ID.Parse(ScopeToThisCommand.ScopedItem));

                var url = ScopeToThisHelper.GetUrl(scopeItem);
                HttpContext.Current.Response.Redirect(url + "&redirect=true");
            }
            else
            {
                base.OnLoad(e);
            }
        }
        public override void Execute(CommandContext context)
        {
            if (context.Items[0] == null)
            {
                return;
            }

            if (string.IsNullOrEmpty(ScopeToThisHelper.ScopedItem))
            {
                ScopeToThisHelper.ScopedItem = context.Items[0].ID.ToString();
            }

            var url = ScopeToThisHelper.GetUrl(context.Items[0]);

            SheerResponse.SetLocation(url);
        }