To generate arguments for use in navigateTo()
, log in and go to the desired page. Once there, execute the following line of code in the browser console to get the current route's attributes:
The following code is only available at the UUX platform level as of UUX 4.6.1.10.
Do not include it in any module code. This is a private lookup for informational purposes only.
The output in the console will look something like this:
{featureName: 'landingPage', queryParams: {}, urlParams: []}
{featureName: 'account', queryParams: {currentTab: 'details'}, urlParams: ['5009']}
You can either transfer the returned data by hand, or copy the output to your clipboard by executing copy(window.getUUXRouteInfo())
. Paste the copied data as the argument for navigateTo()
, and you will have a properly configured argument for navigating to your desired page!
Pre-UUX 4.6.1.10 Tips:
If you are on an older version of UUX, you can deduce the parameters from your URL address bar.
The first URL parameter after /uux.aspx#
is key to understanding if you are in a Tecton or Platform feature.
/extension
means you are in a Tecton feature- Anything besides
/extension
means you are in a Platform feature
If you are in a Tecton feature, the next two path parameters typically match the pattern of /<featureName>/<moduleName>
. These values can be used in their corresponding arguments for the navigateTo()
capability.
- Anything following the
/<featureName>/<moduleName>
parameters are considered queryParams
for the navigateTo()
capability- The
queryParams
in the URL of a Tecton feature might be URL Encoded. You will have to decode those values to match the Javascript object structure expected for the queryParams
argument in navigateTo()
- You will not use
urlParams
when navigating to a Tecton feature
If you are in a Platform feature, the next parameter following the uux.aspx#
typically corresponds to the value used in featureName
.
- For example,
uux.aspx#/settings
indicates the featureName
is 'settings'
Depending on the Platform feature, the next URL parameters after the feature will either be period-separated additions to the value of featureName
, or they are to be passed as values in the urlParams
array
/settings/profile
would be translated to featureName: 'settings.profile'
/account/5006
would be translated to featureName: 'account', urlParams: ['5006']
Query Parameters follow a common pattern regardless of the feature and typically:
- follow a question mark
- have a value assigned to them
- Are separated by the ampersand (
&
)symbol - In contrast to native browser behavior, query parameters with unassigned values are interpreted to have a value of
'true'
under the hood in the online banking application
One exception to these common patterns is with NLP navigation pages in UUX. The query parameter in the URL address likely begins with ?tectonRoute=
, and the value begins with a URL encoded, period-separated string. The last value of that period-separated string is the first key of your queryParams
object. For example, tectonRoute=%7B"tecton.MyExtension.Main.PageConfigs"%3A%20%7B"pageShortName"%3A%20%22"myPage"%22%7D%7D
would be used as queryParams: { PageConfigs: { pageShortName: "myPage"}
in the navigateTo()
capability. See below for more examples.