diff options
Diffstat (limited to 'pdf-as-web/src/main/webapp')
-rw-r--r-- | pdf-as-web/src/main/webapp/jsp/error.jsp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/pdf-as-web/src/main/webapp/jsp/error.jsp b/pdf-as-web/src/main/webapp/jsp/error.jsp index 7a5e970..c0f9977 100644 --- a/pdf-as-web/src/main/webapp/jsp/error.jsp +++ b/pdf-as-web/src/main/webapp/jsp/error.jsp @@ -72,9 +72,11 @@ %>
<%
- //If not within IFrame and the whole application also was not started within an IFrame
+ //First part: if not within IFrame and the whole application also was not started within an IFrame
//we have to set the buergerkarte page as template
- if ((!withiniframe) && (!startedFromIFrame)) {
+ //Second part is because mobile has redirect target _top and in case of cancel it would be redirected
+ //from what this prevents
+ if (((!withiniframe) && (!startedFromIFrame)) || ((!startedFromIFrame) && (((String)request.getAttribute("cause")).contains("Abbruch durch den Bürger über die Benutzerschnittstelle")))) {
if (german) { %>
<meta name="decorator" content="production_de" />
<% } else { %>
@@ -91,7 +93,7 @@ //If the whole application started from an IFrame there could be an external stylesheet
if (!startedFromIFrame) { %>
<link rel="stylesheet" type="text/css" href="<%=baseUrl%>/css/pdfas-styles.css" />
- <link rel="stylesheet" href="<%=serverUrl%>/style.css" type="text/css" />
+ <link rel="stylesheet" href="<%=serverUrl%>style.css" type="text/css" />
<% } else { %>
<link rel="stylesheet" type="text/css" href="<%=baseUrl%>/css/extern-styles.css" />
<% } %>
@@ -188,13 +190,14 @@ //If application not started within an iframe
if (!startedFromIFrame) { %>
<%
- //If error didn't happen within IFrame (e.g. when online bku is called)
- //The whole site has to be shown
- if (!withiniframe) { %>
+ //First condition: if error didn't happen within IFrame (e.g. when local bku is called) the whole site has to be shown
+ //Second condition is because mobile has to have redirect target _top to redirect
+ //in case of successfull signature. But because of this also in case of cancel redirects
+ if ((!withiniframe) || (cause.contains("Abbruch durch den Bürger über die Benutzerschnittstelle"))) { %>
<body style="background: #e6f2fa">
<h1 id="heading1" style="display:block">
<%
- if (testMode) {
+ if ((testMode) ) {
%>
<fmt:message key="test.common.title"/>
<% } else { %>
|