Skip to content
Snippets Groups Projects
Commit 3abfaa47 authored by Laurent's avatar Laurent
Browse files

hotline #59686 fix action url opening in new tab when accessing admin interface using https

parent 34932a42
Branches
Tags
2 merge requests!2334Master,!2138Hotline#59686 probleme d absence d extension lors des downloads d epubs
Pipeline #1363 failed with stage
in 10 minutes and 14 seconds
......@@ -152,7 +152,7 @@ class ZendAfi_View_Helper_RenderModelAction {
return '';
return is_array($url)
? Class_Url::assemble($this->_injectIdIn($id, $url))
? Class_Url::assemble($this->_injectIdIn($id, $url), null, false)
: $this->_injectId($id, $url);
}
......
......@@ -48,7 +48,7 @@ if (typeof jQuery != "undefined")
//Les liens qui référencent des sites externes doivent être ouverts dans un nouvel onglet
var setupAnchorsTarget = function() {
var internalLink = new RegExp('/' + window.location.host + '/');
var internalLink = new RegExp('/' + window.location.host + '(:[0-9]+)?/');
$('a[href^="http"]').each(function() {
if (!internalLink.test($(this).attr('href'))
&& (undefined == this.onclick)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment