patoudss
Forum Replies Created
-
Forum: Plugins
In reply to: [Exclusive Addons for Elementor] link anything not workingHello,
Thanks for the correction, it’s works now in my website.
RegardsHello,
I’m using the Exclusive Addons Elementor version 2.6.9.5, and the link anything not working.
When I debug the javascript code for doing the link :$('body').on('click.onWrapperLink', '[data-exad-element-link]', function(e) { var $wrapper = $(this), data = $wrapper.data('exad-element-link'), id = $wrapper.data('id'), anchor = document.createElement('a'), anchorReal, timeout; if ('undefined' === typeof data.url) { return false } let url = encodeURIComponent(data.url) , validUrl = eae_isValidHttpUrl(url); if (validUrl.badInput === false && validUrl.customError === false && validUrl.patternMismatch === false && validUrl.rangeOverflow === false && validUrl.rangeUnderflow === false && validUrl.stepMismatch === false && validUrl.tooLong === false && validUrl.tooShort === false && validUrl.typeMismatch === true && validUrl.valid === false && validUrl.valueMissing === false) { url = document.location.href.replace('#', '') + url; validUrl = eae_isValidHttpUrl(url) } if (validUrl.valid === false) { e.preventDefault(); e.stopPropagation(); return false } url = eae_decodeURI(url);
The
data.url
has the url in the form of https://site.com/path
TheencodeURIComponent(data.url)
become “https%3A%2F%2Fsite.com%2Fpath”
the codevalidUrl = eae_isValidHttpUrl(url)
not valid to the encoded URI and the condition will concatenate the url encoded to the current url.url = document.location.href.replace('#', '') + url;
the url will be after the code : https://site.com/https%3A%2F%2Fsite.com%2Fpathyou may use the
encodeURI
function instead ofencodeURIComponent
I have this problem with all admin action that create a new customer.
Hello @bizx,
I just add this code in my function.php on my theme for add permissions for an other role :add_filter( 'kc_us_user_permissions', 'my_url_shortify_permissions', 10, 2); function my_url_shortify_permissions ( $permisions, $user ) { if (in_array('editor', $user->roles)) return array('create_links', 'manage_links'); return $permissions; }