This is an automated email from the ASF dual-hosted git repository.

tandraschko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/deltaspike.git


The following commit(s) were added to refs/heads/master by this push:
     new 8ff76c7  DELTASPIKE-1382: Use window.location.replace() for WindowId 
redirect.
     new 82da8a6  Merge pull request #91 from j-be/DELTASPIKE-1382
8ff76c7 is described below

commit 8ff76c7df591d271103f7253451110568d227e82
Author: Juri Berlanda <[email protected]>
AuthorDate: Wed Jun 5 14:40:36 2019 +0200

    DELTASPIKE-1382: Use window.location.replace() for WindowId redirect.
    
    While assigning window.location directly seems to work well in most of the
    cases, it manages to break Browser's back button if certain plugins are
    installed.
    
    Signed-off-by: Juri Berlanda <[email protected]>
---
 .../modules/jsf/impl/src/main/resources/static/windowhandler.html       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/deltaspike/modules/jsf/impl/src/main/resources/static/windowhandler.html 
b/deltaspike/modules/jsf/impl/src/main/resources/static/windowhandler.html
index 806c7dc..6cc68ac 100644
--- a/deltaspike/modules/jsf/impl/src/main/resources/static/windowhandler.html
+++ b/deltaspike/modules/jsf/impl/src/main/resources/static/windowhandler.html
@@ -181,7 +181,7 @@
 
                 dswh.utils.log('redirect to ' + redirectUrl);
 
-                window.location = redirectUrl;
+                window.location.replace(redirectUrl);
             };
             //]]>
         </script>

Reply via email to