File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Blogifier.Admin/Pages/Account Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ public async Task LoginUser()
1919 if ( QueryHelpers . ParseQuery ( uri . Query ) . TryGetValue ( "returnUrl" , out var param ) )
2020 returnUrl = param . First ( ) ;
2121
22+ if ( returnUrl . StartsWith ( "http" ) )
23+ returnUrl = "admin/" ;
24+
2225 var result = await Http . PostAsJsonAsync < LoginModel > ( "api/author/login" , model ) ;
2326
2427 if ( result . IsSuccessStatusCode )
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ public async Task<IActionResult> Index(string slug)
6363 [ HttpGet ( "/admin" ) ]
6464 public async Task < IActionResult > Admin ( )
6565 {
66- return File ( "~/index.html" , "text/html" ) ;
66+ return await Task . FromResult ( File ( "~/index.html" , "text/html" ) ) ;
6767 }
6868
6969 [ HttpPost ]
You can’t perform that action at this time.
0 commit comments