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:
yumoqing 2026-07-10 13:51:06 +08:00
parent 916b501c67
commit ed4898bf90
2 changed files with 2 additions and 2 deletions

View File

@ -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'
}
}

View File

@ -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'
}
}