Browse Source

corrige href de redirecionamento de iframe

pull/2170/head
Leandro Roberto 7 years ago
parent
commit
a31bcc9786
  1. 3
      sapl/templates/base.html

3
sapl/templates/base.html

@ -262,8 +262,7 @@
$(document).ready(function(){ $(document).ready(function(){
let iframe_set_backend = {{ request|has_iframe|lower }} let iframe_set_backend = {{ request|has_iframe|lower }}
if (iframe_set_backend && !inIframe() ) { if (iframe_set_backend && !inIframe() ) {
let href = location.href location.href = location.origin + '?iframe=0'
location.href = href + '?iframe=0'
} }
}); });
</script> </script>

Loading…
Cancel
Save