portal.pageUrlΒΆ

This command generates a URL pointing to a page.

Arguments:

id (string)
Id to the page. If id is set, then path is not used.
path (string)
Path to the page. Relative paths is resolved using the context page.
params (object)
Custom parameters to append to the url.

Example:

var url = execute('portal.pageUrl', {
  path: '/my/page',
  params: {
    a: 1,
    b: [1, 2]
  }
});