fix: use absolute /supplychain/ paths in ensure dspy DataViewer URLs
Relative ../ paths inside PopupWindow DataViewer resolve without module prefix. Use absolute /supplychain/ paths instead.
This commit is contained in:
parent
916b501c67
commit
ed4898bf90
@ -51,6 +51,6 @@ async with DBPools().sqlorContext(dbname) as sor:
|
||||
return {
|
||||
'widgettype': 'DataViewer',
|
||||
'options': {
|
||||
'url': f'../distribution_agreements_list?sub_reseller_id={sub_reseller_id}&_webbricks_=1'
|
||||
'url': f'/supplychain/distribution_agreements_list?sub_reseller_id={sub_reseller_id}&_webbricks_=1'
|
||||
}
|
||||
}
|
||||
|
||||
@ -43,6 +43,6 @@ async with DBPools().sqlorContext(dbname) as sor:
|
||||
return {
|
||||
'widgettype': 'DataViewer',
|
||||
'options': {
|
||||
'url': f'../supply_contracts_list?supplier_id={supplier_id}&_webbricks_=1'
|
||||
'url': f'/supplychain/supply_contracts_list?supplier_id={supplier_id}&_webbricks_=1'
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user