2025-07-18 - Frontend url Link Construction
Revision as of 10:58, 19 July 2025 by Sven the Barbarian (talk | contribs)
Overview
Way of configuring and building links for ui outputs that link to urls. Search parameters and path components may come from variables.
An example use is in table output records where links might direct to urls that need to include identifier field from the record in the url
Another example is building urls in menuConfig.
example urlConfig
{
baseUrl: "xxx", // how to do routes within application?
pathComponents: [
{
type: "string",
string: "xxx"
},
{
type: "variable",
// not sure how data will be structured
objType: {
//..
},
fieldname: "xxx"
},
// ...
],
searchParams: [
{
type: "string",
string: "xxx"
},
{
type: "variable",
// not sure how data will be structured
objType: {
//..
},
fieldname: "xxx"
},
// ...
],
hash: {
type: "string",
string: "xxx"
}
}