Skip to content

Commit 83a8df6

Browse files
committed
Fixed: Show After Registration setting in pages is not working correctly
1 parent 6d20e43 commit 83a8df6

File tree

1 file changed

+4
-1
lines changed
  • DesktopModules/Vanjaro/UXManager/Extensions/Block/Login

1 file changed

+4
-1
lines changed

DesktopModules/Vanjaro/UXManager/Extensions/Block/Login/Login.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,10 @@ private string GenerateMarkup(Dictionary<string, string> Attributes)
156156
ShowRegister = Convert.ToBoolean(Attributes["data-block-showregister"])
157157
};
158158

159-
login.RegisterUrl = Globals.RegisterURL(HttpUtility.UrlEncode(ServiceProvider.NavigationManager.NavigateURL()), Null.NullString);
159+
if ((PortalController.Instance.GetCurrentSettings() as PortalSettings).Registration.RedirectAfterRegistration == -1)
160+
login.RegisterUrl = Globals.RegisterURL(HttpUtility.UrlEncode(ServiceProvider.NavigationManager.NavigateURL()), Null.NullString);
161+
else
162+
login.RegisterUrl = Globals.RegisterURL(null, null);
160163

161164
IDictionary<string, object> Objects = new System.Dynamic.ExpandoObject() as IDictionary<string, object>;
162165
Objects.Add("Login", login);

0 commit comments

Comments
 (0)