Topic
Navigate to a URL rule in a form or view is not working. When triggering the rule, the URL configured inside the rule should open, but instead nothing happens.
The following error is shown in the browser developer tools' console:
Uncaught URIError: URI malformed at decodeURI (<anonymous>) at isInlineScriptURL (RT.js?_gv=830234855-20250318-063123&_v=5.1017.24246.2:355:69584) at navigateAction (RT.js?_gv=830234855-20250318-063123&_v=5.1017.24246.2:355:62140) at navigateSimpleAction (RT.js?_gv=830234855-20250318-063123&_v=5.1017.24246.2:355:103858) at executeAction (RT.js?_gv=830234855-20250318-063123&_v=5.1017.24246.2:355:80800) at Object.executeBehaviour (RT.js?_gv=830234855-20250318-063123&_v=5.1017.24246.2:355:11454) at handleEvent (RT.js?_gv=830234855-20250318-063123&_v=5.1017.24246.2:355:4931) at u (RT.js?_gv=830234855-20250318-063123&_v=5.1017.24246.2:355:961) at raiseEvent (RT.js?_gv=830234855-20250318-063123&_v=5.1017.24246.2:355:1042) at Object.onClick (RT.SourceCode.Forms.Controls.Web.js?_gv=1751541383-20250318-063247&_v=5.1017.24246.2:48:5735)isInlineScriptURL @ RT.js?_gv=830234855-20250318-063123&_v=5.1017.24246.2:355navigateAction @ RT.js?_gv=830234855-20250318-063123&_v=5.1017.24246.2:355navigateSimpleAction @ RT.js?_gv=830234855-20250318-063123&_v=5.1017.24246.2:355executeAction @ RT.js?_gv=830234855-20250318-063123&_v=5.1017.24246.2:355executeBehaviour @ RT.js?_gv=830234855-20250318-063123&_v=5.1017.24246.2:355handleEvent @ RT.js?_gv=830234855-20250318-063123&_v=5.1017.24246.2:355u @ RT.js?_gv=830234855-20250318-063123&_v=5.1017.24246.2:355raiseEvent @ RT.js?_gv=830234855-20250318-063123&_v=5.1017.24246.2:355onClick @ RT.SourceCode.Forms.Controls.Web.js?_gv=1751541383-20250318-063247&_v=5.1017.24246.2:48(anonymous) @ Common.js?_gv=830234855-20250318-063120&_v=5.1017.24246.2:12(anonymous) @ Common.js?_gv=830234855-20250318-063120&_v=5.1017.24246.2:12each @ Common.js?_gv=830234855-20250318-063120&_v=5.1017.24246.2:2each @ Common.js?_gv=830234855-20250318-063120&_v=5.1017.24246.2:2(anonymous) @ Common.js?_gv=830234855-20250318-063120&_v=5.1017.24246.2:12(anonymous) @ RT.SourceCode.Forms.Controls.Web.js?_gv=1751541383-20250318-063247&_v=5.1017.24246.2:48dispatch @ Common.js?_gv=830234855-20250318-063120&_v=5.1017.24246.2:2(anonymous) @ Common.js?_gv=830234855-20250318-063120&_v=5.1017.24246.2:2
Instructions
This error is thrown by the decodeURI method. This is a javascript method used to decode a URL. If the URL the navigate to a URL rule is trying to open is not in the correct format, or contains special reserved characters, this error will be thrown.
For example, trying to open the following URL in the rule will produce the same error:
https://nintex.k2test.net/Runtime/Runtime/Form/Test+Form/?p=100%25
'%' is a special character used in URL encoding operations to replace unsafe ASCII characters. When the navigate to a URL rule is called, the decodeURI javascript method gets called twice. The above URL, after going through the first decodeURI method, will produce this result:
https://nintex.k2test.net/Runtime/Runtime/Form/Test+Form/?p=100%
'%25' is the encoded representation of the character '%'. After the decode operation, '%25' changes to '%'. When the decoded URL gets passed into the decodeURI method again, the operation detects the '%' character, and expect two hexadecimal digits right after the '%' symbol. But because there is only the '%' symbol, the decode operation fails.
To get the navigate to a URL rule working, look out for any special characters and try removing them if they are not required. For example, remove the '%' character if it is not required. If the URL you are specifying in the rule is an encoded URL, remove '%25' to completely remove the '%' character.
