make it a little easier to find the starting page
This commit is contained in:
parent
e177e571f4
commit
5a8966abb3
1 changed files with 7 additions and 0 deletions
|
|
@ -216,6 +216,13 @@ public class AlbumServlet
|
|||
req.setAttribute("mapper", new Mapper());
|
||||
String pathInfo = req.getPathInfo();
|
||||
|
||||
// help the user get to the top level page
|
||||
if (pathInfo == null || "/".equals(pathInfo)) {
|
||||
String u = req.getContextPath() + "/album/" + base.getName() + ".album";
|
||||
res.sendRedirect(u);
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
if (pathInfo != null && pathInfo.startsWith(basePrefix)) {
|
||||
pathInfo = pathInfo.substring(basePrefix.length());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue