File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
DesktopModules/Vanjaro/UXManager/Extensions/Block/Login Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments