mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 14:35:45 +01:00
fix template not found problems on /index.html
This commit is contained in:
@@ -238,6 +238,15 @@ public class TemplateServlet extends HttpServlet
|
||||
{
|
||||
path = path.concat("index.mustache");
|
||||
}
|
||||
else
|
||||
{
|
||||
int index = path.lastIndexOf('.');
|
||||
|
||||
if (index > 0)
|
||||
{
|
||||
path = path.substring(0, index).concat(".mustache");
|
||||
}
|
||||
}
|
||||
|
||||
return path;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user