2025-07-18 - Frontend url Link Construction

From Izara Wiki
Revision as of 14:00, 18 July 2025 by Sven the Barbarian (talk | contribs) (Created page with "= 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 = example urlConfig = <syntaxhighlight lang="JavaScript"> { baseUrl: "xxx", pathComponents: [ { type: "string", string: "xxx" }, { type: "variable", // not sure ho...")
(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

example urlConfig

{
	baseUrl: "xxx",
	pathComponents: [
		{
			type: "string",
			string: "xxx"
		},
		{
			type: "variable",
			// not sure how data will be structure
			objType: {
				//..
			},
			fieldname: "xxx"
		},
		// ... 
	],
	searchParams: [
		{
			type: "string",
			string: "xxx"
		},
		{
			type: "variable",
			// not sure how data will be structure
			objType: {
				//..
			},
			fieldname: "xxx"
		},
		// ... 
	],
	hash: {
		type: "string",
		string: "xxx"
	}
}