2025-07-18 - Frontend url Link Construction

From Izara Wiki
Revision as of 10:58, 19 July 2025 by Sven the Barbarian (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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"
	}
}