adding display for wiki pages to tag/uses
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -80,7 +80,14 @@ public class WikiModule extends BaseHandler implements WikiService {
|
||||
case null -> getUserPages(user.get(),ex);
|
||||
case AVAILABLE -> getAvailability(path,ex);
|
||||
case PAGE -> getPage(path, user.get(), ex);
|
||||
default -> super.doGet(path,ex);
|
||||
default -> {
|
||||
try {
|
||||
Long.parseLong(head);
|
||||
path.push(head);
|
||||
yield getPage(path,user.get(),ex);
|
||||
} catch (NumberFormatException ignored){}
|
||||
yield super.doGet(path,ex);
|
||||
}
|
||||
};
|
||||
} catch (UmbrellaException e){
|
||||
return send(ex,e);
|
||||
|
||||
Reference in New Issue
Block a user