For example taken from this Package if you want click the material the url is broken.
It generates:
https://database.openprinttag.org/brands/prusament-asa-jet-black
Not the expected:
https://database.openprinttag.org/brands/prusament/packages/prusament-asa-jet-black-800-spool
partially is to blame:
|
route: '/brands/$brandId', |
as it only sets the $brandId and not even the material id and
|
const params = |
|
field?.entity === 'container' |
|
? { |
|
...match?.params, |
|
containerId: val?.[relData.valueField], |
|
} |
|
: { brandId: val?.[relData.valueField] }; |
as it's rather fragile and doesn't even set a materialId in this case. Only the materialId as the brandId.
For example taken from this Package if you want click the material the url is broken.
It generates:
https://database.openprinttag.org/brands/prusament-asa-jet-blackNot the expected:
https://database.openprinttag.org/brands/prusament/packages/prusament-asa-jet-black-800-spoolpartially is to blame:
openprinttag-database/ui-editor/src/server/data/schema-metadata.ts
Line 84 in dbd3a79
as it only sets the
$brandIdand not even the material id andopenprinttag-database/ui-editor/src/components/ValueDisplay.tsx
Lines 184 to 190 in dbd3a79
as it's rather fragile and doesn't even set a materialId in this case. Only the materialId as the brandId.