adding display for wiki pages to tag/uses

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-09-25 21:07:54 +02:00
parent ca3c34ab5b
commit ae84a806d1
4 changed files with 13 additions and 2 deletions

View File

@@ -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);