Ejemplo n.º 1
0
        private static void GetBaseRewriteUrlItem(BaseRewriteUrlItem baseRewriteUrlItem, IBaseRewriteUrl redirectAction)
        {
            var    redirectTo = baseRewriteUrlItem.RewriteUrl;
            string actionRewriteUrl;
            Guid?  redirectItemId;
            string redirectItemAnchor;

            RulesEngine.GetRedirectUrlOrItemId(redirectTo, out actionRewriteUrl, out redirectItemId, out redirectItemAnchor);
            redirectAction.RewriteItemId     = redirectItemId;
            redirectAction.RewriteItemAnchor = redirectItemAnchor;
            redirectAction.RewriteUrl        = actionRewriteUrl;
        }
Ejemplo n.º 2
0
        private static void GetBaseRewriteUrlItem(BaseRewriteUrlItem baseRewriteUrlItem, IBaseRewriteUrl redirectAction)
        {
            var redirectTo = baseRewriteUrlItem.RewriteUrl;
            string actionRewriteUrl;
            Guid? redirectItemId;
            string redirectItemAnchor;

            RulesEngine.GetRedirectUrlOrItemId(redirectTo, out actionRewriteUrl, out redirectItemId, out redirectItemAnchor);
            redirectAction.RewriteItemId = redirectItemId;
            redirectAction.RewriteItemAnchor = redirectItemAnchor;
            redirectAction.RewriteUrl = actionRewriteUrl;
        }
Ejemplo n.º 3
0
        private static void GetBaseRewriteUrlItem(BaseRewriteUrlItem baseRewriteUrlItem, IBaseRewriteUrl redirectAction)
        {
            var    redirectTo = baseRewriteUrlItem.RewriteUrl;
            string actionRewriteUrl;
            Guid?  redirectItemId;
            string redirectItemAnchor;

            RulesEngine.GetRedirectUrlOrItemId(redirectTo, out actionRewriteUrl, out redirectItemId, out redirectItemAnchor);
            redirectAction.RewriteItemId     = redirectItemId;
            redirectAction.RewriteItemAnchor = redirectItemAnchor;
            redirectAction.RewriteUrl        = actionRewriteUrl;

            if (baseRewriteUrlItem.TargetLanguage != null)
            {
                redirectAction.TargetLanguageId = baseRewriteUrlItem.TargetLanguage.TargetID.Guid;
            }
        }