From a3d886d6e61565e2fa00df33cf219a5e1cac58e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20Rei=C3=9Fig?= Date: Sun, 3 Jan 2021 23:18:29 +0100 Subject: [PATCH] Adapt remain main site prefixes and catch a regression introduced with #22 (#24) --- .../java/de/mikromedia/webpages/WebpagePlugin.java | 4 ++++ src/main/resources/views/fragments/footer.html | 8 ++++---- src/main/resources/views/fragments/widgets.html | 12 ++++++------ src/main/resources/views/frontpage.html | 4 ++-- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/src/main/java/de/mikromedia/webpages/WebpagePlugin.java b/src/main/java/de/mikromedia/webpages/WebpagePlugin.java index 804cfb0..3ccfd9f 100644 --- a/src/main/java/de/mikromedia/webpages/WebpagePlugin.java +++ b/src/main/java/de/mikromedia/webpages/WebpagePlugin.java @@ -269,6 +269,10 @@ public Viewable getWebsitePage(@PathParam("site") String sitePrefix, @PathParam( String location = "/" + sitePrefix + "/" + webAlias; // 1) Query for website topic Topic usersWebsite = getWebsiteByPrefix(sitePrefix); + if (usersWebsite != null) { + prepareGenericViewData(SIMPLE_PAGE_TEMPLATE_NAME, sitePrefix, pageAlias); + prepareWebsiteViewData(usersWebsite, location); + } // 2) check related webpages Webpage webpage = getWebsitesWebpage(usersWebsite, pageAlias); if (webpage != null) { diff --git a/src/main/resources/views/fragments/footer.html b/src/main/resources/views/fragments/footer.html index 313555f..dd7218a 100644 --- a/src/main/resources/views/fragments/footer.html +++ b/src/main/resources/views/fragments/footer.html @@ -21,12 +21,12 @@

Menu

Pages

-