The Unified and Autonomous Development Platform
Fix the issue that Gitop can not redirect to specified url after restart.
robin shine38d98d383692
diff --git a/gitop.web/src/main/java/com/pmease/gitop/web/page/EmptyPage.java b/gitop.web/src/main/java/com/pmease/gitop/web/page/EmptyPage.javaindex b9b4e15723..198f6d880d 100644--- a/gitop.web/src/main/java/com/pmease/gitop/web/page/EmptyPage.java+++ b/gitop.web/src/main/java/com/pmease/gitop/web/page/EmptyPage.java@@ -5,7 +5,6 @@ import java.util.Iterator;import org.apache.wicket.Application;import org.apache.wicket.Component;import org.apache.wicket.RestartResponseAtInterceptPageException;-import org.apache.wicket.RestartResponseException;import org.apache.wicket.behavior.AttributeAppender;import org.apache.wicket.markup.ComponentTag;import org.apache.wicket.markup.IMarkupFragment;@@ -70,7 +69,7 @@ public abstract class EmptyPage extends WebPage {if (!Gitop.getInstance().isReady()&& getClass() != ServerInitPage.class) {- throw new RestartResponseException(ServerInitPage.class);+ throw new RestartResponseAtInterceptPageException(ServerInitPage.class);}}diff --git a/gitop.web/src/main/java/com/pmease/gitop/web/page/TestPage.html b/gitop.web/src/main/java/com/pmease/gitop/web/page/TestPage.htmlindex ba56392c0b..36f44f0f71 100644--- a/gitop.web/src/main/java/com/pmease/gitop/web/page/TestPage.html+++ b/gitop.web/src/main/java/com/pmease/gitop/web/page/TestPage.html@@ -1,8 +1,4 @@-<!DOCTYPE html>-<html class="no-js" xmlns:wicket="http://wicket.apache.org">-<head>-</head>-<body>+<wicket:extend><div wicket:id="feedback"></div><form wicket:id="form"><div wicket:id="feedback"></div>@@ -11,5 +7,4 @@</form><div wicket:id="viewer"></div>-</body>-</html>+</wicket:extend>\ No newline at end of filediff --git a/gitop.web/src/main/java/com/pmease/gitop/web/page/TestPage.java b/gitop.web/src/main/java/com/pmease/gitop/web/page/TestPage.javaindex 04f52480cb..c12127ee3a 100644--- a/gitop.web/src/main/java/com/pmease/gitop/web/page/TestPage.java+++ b/gitop.web/src/main/java/com/pmease/gitop/web/page/TestPage.java@@ -7,7 +7,6 @@ import javax.validation.ConstraintValidatorContext;import javax.validation.Valid;import org.apache.wicket.feedback.FencedFeedbackPanel;-import org.apache.wicket.markup.html.WebPage;import org.apache.wicket.markup.html.form.Form;import org.hibernate.validator.constraints.NotEmpty;@@ -19,7 +18,7 @@ import com.pmease.commons.wicket.editable.BeanContext;import com.pmease.commons.wicket.editable.BeanEditor;@SuppressWarnings("serial")-public class TestPage extends WebPage {+public class TestPage extends EmptyPage {private Bean bean = new Bean();