Skip to content

Commit ddb68f1

Browse files
claudiamurialdoClaudia Beatriz Murialdo Garrone
andauthored
Fixed redirection issue where missing trailing slash caused incorrect URL redirection to root instead of the application path (#1069)
Co-authored-by: Claudia Beatriz Murialdo Garrone <c.murialdo@globant.com>
1 parent a73bbae commit ddb68f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dotnet/src/dotnetcore/GxNetCoreStartup/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ public IActionResult Index()
612612
string[] defaultFiles = { "default.htm", "default.html", "index.htm", "index.html" };
613613
foreach (string file in defaultFiles) {
614614
if (System.IO.File.Exists(Path.Combine(Startup.LocalPath, file))){
615-
return Redirect(file);
615+
return Redirect(Url.Content($"~/{file}"));
616616
}
617617
}
618618
return Redirect(defaultFiles[0]);

0 commit comments

Comments
 (0)