<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: 500 Server Error when hitting history back button of browser</title><link>https://answers.axonivy.com/questions/1450/500-server-error-when-hitting-history-back-button-of-browser</link><description>&lt;p&gt;I have the problem, that if you have two or more dialog calls in a process, you cannot use the history back button of the browser, as soon as you are past the first dialog.&lt;/p&gt;
&lt;p&gt;&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/2015-08-26_08_41_15-Process_Development_-_Workflows_processes_Start_Processes_Main.mod_-_Axon.ivy_De.png"&gt;&lt;/p&gt;
&lt;p&gt;In this example, as soon as you reach Education, it does not work anymore.&lt;/p&gt;
&lt;p&gt;I think the reason for this is, that the dialog instance is closed, when you leave a dialog and move further (Dialog Close event).&lt;/p&gt;
&lt;p&gt;&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/2015-08-26_08_44_18-Apache_Tomcat_7.0.55_-_Error_report_-_Internet_Explorer.png"&gt;&lt;/p&gt;
&lt;p&gt;I think that this is ivy specific, becuase as far as I know, it works properly with plain PF/JSF. In my opinion, the back button should work allways, becaus of the usability, and the developer should take care of what happens with data and so on.&lt;/p&gt;
&lt;p&gt;Anyway, does anybody have a solution for this?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1450/500-server-error-when-hitting-history-back-button-of-browser" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 18 Sep 2015 04:53:58 -0400</lastBuildDate><item><title>Answer by enricojl</title><link>https://answers.axonivy.com/questions/1450/500-server-error-when-hitting-history-back-button-of-browser/1482</link><description>&lt;p&gt;Here is a work around - You can deactivate the back button.  Here is the code to add to the HTML page...  It works in Html Dialogs.  &lt;/p&gt;
&amp;lt;script type="text/javascript"&amp;gt;
            //for old browsers
            window.location.hash = "no-back-button";
            window.location.hash = "Again-No-back-button";
            window.onhashchange = function() {
                window.location.hash = "no-back-button";
            }

            //for browsers that support HTML5 
            history.pushState(null, null, 'no-back-button');
            window.addEventListener('popstate', function(event) {
                history.pushState(null, null, 'no-back-button');
            });
    &amp;lt;/script&amp;gt;

&lt;p&gt;&lt;a href="http://forum.primefaces.org/viewtopic.php?f=3&amp;amp;t=40503"&gt;http://forum.primefaces.org/viewtopic.php?f=3&amp;amp;t=40503&lt;/a&gt; &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">enricojl</dc:creator><pubDate>Fri, 18 Sep 2015 04:53:58 -0400</pubDate><guid>https://answers.axonivy.com/questions/1450/500-server-error-when-hitting-history-back-button-of-browser/1482</guid></item></channel></rss>