Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 375751 | Differences between
and this patch

Collapse All | Expand All

(-)a/org.eclipse.help.webapp/advanced/deferredView.jsp (-2 / +7 lines)
Lines 1-5 Link Here
1
<%--
1
<%--
2
 Copyright (c) 2006, 2010 IBM Corporation and others.
2
 Copyright (c) 2006, 2012 IBM Corporation and others.
3
 All rights reserved. This program and the accompanying materials 
3
 All rights reserved. This program and the accompanying materials 
4
 are made available under the terms of the Eclipse Public License v1.0
4
 are made available under the terms of the Eclipse Public License v1.0
5
 which accompanies this distribution, and is available at
5
 which accompanies this distribution, and is available at
Lines 13-18 Link Here
13
<% 
13
<% 
14
	RequestData data = new RequestData(application, request, response);
14
	RequestData data = new RequestData(application, request, response);
15
	WebappPreferences prefs = data.getPrefs();
15
	WebappPreferences prefs = data.getPrefs();
16
	
17
	String baseURL = request.getRequestURL().toString();
18
	baseURL = baseURL.substring(0,baseURL.lastIndexOf("/")+1);
19
	
20
	String href = baseURL+request.getParameter("href");
16
%>
21
%>
17
22
18
<html lang="<%=ServletResources.getString("locale", request)%>">
23
<html lang="<%=ServletResources.getString("locale", request)%>">
Lines 22-28 Link Here
22
27
23
<script language="JavaScript">
28
<script language="JavaScript">
24
	function onloadHandler() { 
29
	function onloadHandler() { 
25
		location.href="<%=UrlUtil.JavaScriptEncode(request.getParameter("href"))%>";
30
		location.href="<%=UrlUtil.JavaScriptEncode(href)%>";
26
	}
31
	}
27
</script>
32
</script>
28
33

Return to bug 375751