mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 09:46:16 +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");
|
path = path.concat("index.mustache");
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
int index = path.lastIndexOf('.');
|
||||||
|
|
||||||
|
if (index > 0)
|
||||||
|
{
|
||||||
|
path = path.substring(0, index).concat(".mustache");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user