lib.xp.examples.portal.pageUrl.js Maven / Gradle / Ivy
var portalLib = require('/lib/xp/portal');
var t = require('/lib/xp/testing');
// BEGIN
var url = portalLib.pageUrl({
path: '/my/page',
params: {
a: 1,
b: [1, 2]
}
});
// END
t.assertEquals('PageUrlParams{type=server, params={a=[1], b=[1, 2]}, path=/my/page}', url);