]> git.sur5r.net Git - bacula/bacula/commitdiff
baculum: Use home page url when an error is shown
authorMarcin Haba <marcin.haba@bacula.pl>
Tue, 14 Nov 2017 17:31:32 +0000 (18:31 +0100)
committerMarcin Haba <marcin.haba@bacula.pl>
Tue, 14 Nov 2017 17:32:23 +0000 (18:32 +0100)
gui/baculum/protected/Web/Pages/BaculumError.page

index f9acc52af8e35efeb9fb36905f07de5cb9282cc0..ca84c8336c2fd8ad2cbe49d64e38038c18503a74 100644 (file)
@@ -1,6 +1,6 @@
 <%@ MasterClass="Application.Web.Layouts.MessageBox" Theme="Baculum-v1"%>
 <com:TContent ID="Message">
- <div id="message-box">
+<div id="message-box">
        <h2><%[ Baculum problem ]%></h2>
        <h3>Error <%=$this->error%> - <%=$this->output%></h3>
        <hr />
@@ -8,5 +8,8 @@
                <a href="<%=$this->Service->constructUrl('WebHome')%>"><%[ TRY AGAIN ]%></a> <%[ or run ]%>
                <a href="<%=$this->Service->constructUrl('WebConfigWizard')%>"><%[ Baculum Initial Wizard ]%></a>
        </p>
- </div>
+</div>
+<script type="text/javascript">
+       window.history.pushState('page', 'Title', '<%=$this->Service->constructUrl('WebHome')%>');
+</script>
 </com:TContent>