diff --git a/Interface/Objects/MainMenuItem.cs b/Interface/Objects/MainMenuItem.cs index a38c7486..29425838 100644 --- a/Interface/Objects/MainMenuItem.cs +++ b/Interface/Objects/MainMenuItem.cs @@ -152,6 +152,11 @@ namespace Swarmops.Interface.Objects /// /// SPECIAL CASE: Close Books menu item /// - SpecialCloseBooks + SpecialCloseBooks, + + /// + /// SPECIAL CASE: Self-signup menu item + /// + SpecialSelfSignup } } \ No newline at end of file diff --git a/Site5/Controls/v5/Base/MainMenu.ascx.cs b/Site5/Controls/v5/Base/MainMenu.ascx.cs index fc79bcbb..872303ad 100644 --- a/Site5/Controls/v5/Base/MainMenu.ascx.cs +++ b/Site5/Controls/v5/Base/MainMenu.ascx.cs @@ -61,6 +61,19 @@ namespace Swarmops.Controls.Base string localizedText = "RESOURCE NOT FOUND"; string prettyNavUrl = menuItem.NavigateUrl ?? string.Empty; + if (menuItem.Type == MenuItemType.SpecialSelfSignup) + { + if (string.IsNullOrEmpty (CurrentOrganization.VanityDomain)) + { + prettyNavUrl = "/Signup?OrganizationId=" + CurrentOrganization.Identity; + } + else + { + prettyNavUrl = "//" + CurrentOrganization.VanityDomain + "/Signup"; + } + menuItem.Type = MenuItemType.Link; // once the link is set, change to type Link to go into normal logic + } + if (!Debugger.IsAttached) { prettyNavUrl = prettyNavUrl.Replace ("/Pages/v5/", "/").Replace (".aspx", ""); diff --git a/Site5/Global.asax b/Site5/Global.asax index 30434fa9..321f0dce 100644 --- a/Site5/Global.asax +++ b/Site5/Global.asax @@ -40,6 +40,7 @@ "{0}Default.aspx", // for dev.swarmops.com/ "{0}.aspx", // for dev.swarmops.com/Security/Login "/Pages/v5/Public{0}.aspx", // for dev.swarmops.com/Signup (and others under Public) + "/Pages/v5/Public{0}", // for dev.swarmops.com/WizardStyle.css (linked from pages in Public) "/Pages/v5{0}.aspx", // for dev.swarmops.com/User/SelectLanguage "/Pages/v5{0}" // for dev.swarmops.com/Ledgers/Json-SomethingData.aspx }; diff --git a/Site5/MainMenu-v5.xml b/Site5/MainMenu-v5.xml index e10d48ce..f4688693 100644 --- a/Site5/MainMenu-v5.xml +++ b/Site5/MainMenu-v5.xml @@ -42,7 +42,7 @@ People_SelfSignup 2 - Disabled + SelfSignup