From 393a554be9412bda3c220cf2026097be57378706 Mon Sep 17 00:00:00 2001 From: Martin Spielmann Date: Sat, 30 Jul 2016 13:44:42 +0200 Subject: [PATCH] fix last broken panel --- .../java/com/gitblit/wicket/panels/ObjectContainer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gitblit/wicket/panels/ObjectContainer.java b/src/main/java/com/gitblit/wicket/panels/ObjectContainer.java index 63f7b210..02aada59 100644 --- a/src/main/java/com/gitblit/wicket/panels/ObjectContainer.java +++ b/src/main/java/com/gitblit/wicket/panels/ObjectContainer.java @@ -29,7 +29,7 @@ import org.apache.wicket.protocol.http.ClientProperties; import org.apache.wicket.protocol.http.WebSession; import org.apache.wicket.protocol.http.request.WebClientInfo; import org.apache.wicket.request.Response; -import org.apache.wicket.request.cycle.RequestCycle; +import org.apache.wicket.request.resource.PackageResourceReference; import org.apache.wicket.util.value.IValueMap; /** @@ -85,8 +85,8 @@ public abstract class ObjectContainer extends WebMarkupContainer { parent = parent.getParent(); } if (parent != null) { - ResourceReference resRef = new ResourceReference(parent.getClass(), src, false); - return (urlFor(resRef).toString()); + PackageResourceReference resRef = new PackageResourceReference(parent.getClass(), src); + return (urlFor(resRef, getPage().getPageParameters()).toString()); } return (src); -- 2.39.5