package org.sagebionetworks.web.server.servlet.filter;

public class DigitalHealthFilter extends RedirectFilter {

	@Override
	protected String getTargetPage() {
		return "#!StandaloneWiki:DigitalHealth";
	}

	@Override
	protected String getUrlPath() {
		return "digitalhealth";
	}
}

@@ -49,16 +49,304 @@
 ilter;%0A%0A
+import java.io.IOException;%0Aimport javax.servlet.Filter;%0Aimport javax.servlet.FilterChain;%0Aimport javax.servlet.FilterConfig;%0Aimport javax.servlet.ServletException;%0Aimport javax.servlet.ServletRequest;%0Aimport javax.servlet.ServletResponse;%0Aimport javax.servlet.http.HttpServletResponse;%0A%0A
 public c
@@ -374,24 +374,19 @@
 ter 
-extend
+implement
 s 
-Redirect
 Filt
@@ -408,160 +408,383 @@
 e%0A%09p
-rotected String getTargetPage() %7B%0A%09%09return %22#!StandaloneWiki:DigitalHealth%22;%0A%09%7D%0A%0A%09@Override%0A%09protected String getUrlPath() %7B%0A%09%09return %22digitalhealth%22;%0A%09
+ublic void destroy() %7B%0A%09%09// nothing to do%0A%09%7D%0A%0A%09@Override%0A%09public void doFilter(ServletRequest rqst, ServletResponse rspn, FilterChain chain) throws IOException, ServletException %7B%0A%09%09HttpServletResponse httpRsp = (HttpServletResponse) rspn;%0A%09%09httpRsp.sendRedirect(%22https://dhealth.synapse.org/%22);%0A%09%7D%0A%0A%09@Override%0A%09public void init(FilterConfig config) throws ServletException %7B
 %7D%0A%7D%0A

update /digitalhealth to go to the new portal