示例#1
0
        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapSiteMarkerRoute(
                "PublicProfileBlogPosts",
                "Public Profile",
                "{contactId}/blog-posts",
                new { controller = "PublicProfile", action = "ProfileBlogPosts", contactId = Guid.Empty });

            context.MapSiteMarkerRoute(
                "PublicProfileIdeas",
                "Public Profile",
                "{contactId}/ideas",
                new { controller = "PublicProfile", action = "ProfileIdeas", contactId = Guid.Empty });

            context.MapSiteMarkerRoute(
                "PublicProfileForumPosts",
                "Public Profile",
                "{contactId}/forum-posts",
                new { controller = "PublicProfile", action = "ProfileForumPosts", contactId = Guid.Empty });

            context.MapSiteMarkerRoute(
                "RedirectToProfile",
                "Public Profile",
                "{contactId}",
                new { controller = "PublicProfile", action = "ProfileRedirect", contactId = Guid.Empty });
        }
 public override void RegisterArea(AreaRegistrationContext context)
 {
     context.MapSiteMarkerRoute(
         "KnowledgeBaseArticle",
         "Knowledge Base",
         "{number}",
         new { controller = "Article", action = "Index" });
 }
示例#3
0
 public override void RegisterArea(AreaRegistrationContext context)
 {
     context.MapSiteMarkerRoute(
         "Category",
         "Category",
         "{number}",
         new { controller = "Category", action = "Index" });
 }
示例#4
0
        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapSiteMarkerRoute(
                "IdeaActions",
                "Ideas",
                "idea/{action}/{id}",
                new { controller = "Idea", action = "Index", id = Guid.Empty });

            context.MapSiteMarkerRoute(
                "IdeasFilter",
                "Ideas",
                "{ideaForumPartialUrl}/filter/{filter}/{timeSpan}/{status}",
                new { controller = "Ideas", action = "Filter", filter = "top", timeSpan = "all-time", status = (int?)IdeaStatus.New });

            context.MapSiteMarkerRoute(
                "Ideas",
                "Ideas",
                "{ideaForumPartialUrl}/{ideaPartialUrl}",
                new { controller = "Ideas", action = "Ideas", ideaForumPartialUrl = UrlParameter.Optional, ideaPartialUrl = UrlParameter.Optional });
        }
示例#5
0
        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapSiteMarkerRoute(
                "IssueActions",
                "Issues",
                "issue/{action}/{id}",
                new { controller = "Issue", action = "Index", id = Guid.Empty });

            context.MapSiteMarkerRoute(
                "IssuesFilter",
                "Issues",
                "{issueForumPartialUrl}/filter/{filter}/{status}/{priority}",
                new { controller = "Issues", action = "Filter", filter = "open", status = "all", priority = "any" });

            context.MapSiteMarkerRoute(
                "Issues",
                "Issues",
                "{issueForumPartialUrl}/{issuePartialUrl}",
                new { controller = "Issues", action = "Issues", issueForumPartialUrl = UrlParameter.Optional, issuePartialUrl = UrlParameter.Optional });
        }
示例#6
0
        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapSiteMarkerRoute(
                "KnowledgeArticleWithLegacyLang",
                "Knowledge Article",
                "{number}/{lang}",
                new { controller = "Article", action = "Article", number = UrlParameter.Optional, lang = UrlParameter.Optional, page = UrlParameter.Optional });

            context.MapSiteMarkerRoute(
                "KnowledgeArticleActions",
                "Knowledge Article",
                "{number}/{action}/{id}",
                new { controller = "Article", action = "Article", number = UrlParameter.Optional, id = Guid.Empty });

            context.MapSiteMarkerRoute(
                "KnowledgeArticleActionsWithLegacyLang",
                "Knowledge Article",
                "{number}/{lang}/{action}/{id}",
                new { controller = "Article", action = "Article", number = UrlParameter.Optional, lang = UrlParameter.Optional, id = Guid.Empty });
        }
示例#7
0
        public override void RegisterArea(AreaRegistrationContext context)
        {
            if (SetupConfig.OwinEnabled())
            {
                context.MapRoute(
                    "Account/SignIn",
                    "SignIn",
                    new { area = "Account", controller = "Login", action = "Login" }
                    );

                context.MapRoute(
                    "Account/Login",
                    "Account/{controller}/{action}",
                    new { area = "Account", action = "Login" },
                    new { controller = "Login" }
                    );

                context.MapRoute(
                    "Account/Redeem",
                    "Register",
                    new { area = "Account", controller = "Login", action = "RedeemInvitation" }
                    );

                context.MapRoute(
                    "Account/Manage",
                    "Account/{controller}/{action}",
                    new { area = "Account", action = "Index" },
                    new { controller = "Manage" }
                    );

                context.MapRoute("Facebook/Pages", "app/facebook", new { controller = "Login", action = "FacebookExternalLoginCallback" });
            }
            else
            {
                context.MapRoute("auth/federation-axd", "Federation.axd", new { controller = "Account", action = "SignInWsFederation" });
                context.MapRoute("auth/wsfederation", "auth/wsfederation", new { controller = "Account", action = "SignInWsFederation" });
                context.MapRoute("signin/wsfederation", "signin-federation", new { controller = "Account", action = "SignInWsFederation" });
                context.MapRoute("signin/openauth", "signin-{provider}", new { controller = "Account", action = "SignInOpenAuth" });
                context.MapRoute("app/facebook", "app/facebook", new { controller = "Account", action = "FacebookApp", provider = "facebook" });

                context.MapSiteMarkerRoute(
                    "SignIn",
                    "Login",
                    "{action}",
                    new { controller = "Account", action = "SignIn" }, new { action = @"^SignIn.*" });

                if (Membership.EnablePasswordReset)
                {
                    context.MapSiteMarkerRoute(
                        "PasswordRecovery",
                        "Login",
                        "{action}",
                        new { controller = "Account", action = "PasswordRecovery" }, new { action = @"^PasswordRecovery.*" });
                }

                context.MapSiteMarkerRoute(
                    "Sign Up",
                    "Sign Up",
                    "{action}",
                    new { controller = "Account", action = "SignUp" }, new { action = @"^SignUp.*" });

                context.MapRoute(
                    "Account",
                    "account-signout",
                    new { controller = "Account", action = "SignOut" }, new { action = @"^SignOut.*" });

                context.MapSiteMarkerRoute(
                    "Register",
                    "Register",
                    "{action}",
                    new { controller = "Account", action = "Redeem" }, new { action = @"^Redeem.*" });
            }
        }