Skip to content

Commit ba3f112

Browse files
authored
Merge pull request #45 from mjohanss/master
Fixed issue with missing / at the end of first request. gitignore upd…
2 parents 98dfc45 + 040b352 commit ba3f112

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ obj/
2828
_ReSharper*/
2929
[Tt]est[Rr]esult*
3030
*/packages/*/
31-
src/*/.vs/*
32-
src/*/packages/*/
31+
**/.vs/*
32+
**/packages/*/
3333
src/Tools/MarkdownToNamespaceDoc/packages/*/
3434
src/Tools/TsGenerator/.vs/*
3535
src/Help/*

src/Server/Coderr.Server.Web/Controllers/HomeController.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace codeRR.Server.Web.Controllers
99
[Authorize]
1010
public class HomeController : Controller
1111
{
12-
private IQueryBus _queryBus;
12+
private readonly IQueryBus _queryBus;
1313

1414
public HomeController(IQueryBus queryBus1)
1515
{
@@ -22,10 +22,10 @@ public async Task<ActionResult> Index()
2222
if (apps.Length == 0)
2323
return RedirectToAction("Application", "Wizard");
2424

25+
if (!Request.Path.EndsWith("/"))
26+
return Redirect(Request.Path + "/");
27+
2528
return View();
2629
}
27-
28-
29-
3030
}
3131
}

0 commit comments

Comments
 (0)