diff --git a/app.php b/app.php index d4ccb23..ca1ce44 100644 --- a/app.php +++ b/app.php @@ -353,7 +353,9 @@ function($f3) { array_map('unlink', explode(' ', trim($svgFiles))); } - $f3->reroute($f3->get('REVERSE_PROXY_URL').'/signature/'.$f3->get('PARAMS.hash')."#signed"); + \Flash::instance()->setKey('openModal', 'signed'); + + $f3->reroute($f3->get('REVERSE_PROXY_URL').'/signature/'.$f3->get('PARAMS.hash')); } ); diff --git a/public/js/signature.js b/public/js/signature.js index 5cef947..074d612 100644 --- a/public/js/signature.js +++ b/public/js/signature.js @@ -1040,7 +1040,7 @@ var modalSharing = function() { }) } - if(window.location.hash == '#signed') { + if(openModal == 'signed') { let modalSignedEl = document.getElementById('modal-signed'); let modalSigned = bootstrap.Modal.getOrCreateInstance(modalSignedEl); modalSigned.show();