This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

Change external link URLs by script
Good companions, I hope you are excellent. This is to ask them, if there is a way, either by lua or javascript or otherwise, to dynamically change the url of the external link. The previous comment because, I have several users who have certain permissions to see some pages, in addition to the above I have several logic machines, which I must be able to navigate between them without asking the user and password at any time, but I must have disabled the option to disable the password for viewing, because as I said I have several users associated with a page that only they can see. So I do not know if I have to change the url dynamically depending on the user who enters or rather I must somehow skip the restriction of requesting the username and password to certain users at the time of making the external link or that to certain pages do not ask for the username and password option. I am attentive to your comments and suggestions.
You can override link like this. It will work for any other elements as well as it removes default click handler and replaces it with a custom one.
$('.link1').off('vclick').on('vclick', function() {
  window.location = '';

Forum Jump: