Fix broken View on L2 links - remove incorrect /ui prefix
The L2 server route is /asset/{name}, not /ui/asset/{name}.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -911,7 +911,7 @@ async def run_detail(run_id: str, request: Request):
|
||||
<div class="bg-green-900/30 border border-green-700 rounded-lg p-4">
|
||||
<p class="text-green-300">
|
||||
Published as <strong>{asset_name}</strong>
|
||||
<a href="{l2_https}/ui/asset/{asset_name}" target="_blank" class="underline ml-2">View on L2</a>
|
||||
<a href="{l2_https}/asset/{asset_name}" target="_blank" class="underline ml-2">View on L2</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -2290,7 +2290,7 @@ async def ui_publish_cache(content_hash: str, request: Request):
|
||||
return f'''
|
||||
<div class="bg-green-900/50 border border-green-700 text-green-300 px-4 py-3 rounded-lg mb-4">
|
||||
Published to L2 as <strong>{asset_name}</strong>!
|
||||
<a href="{l2_https}/ui/asset/{asset_name}" target="_blank" class="underline">View on L2</a>
|
||||
<a href="{l2_https}/asset/{asset_name}" target="_blank" class="underline">View on L2</a>
|
||||
</div>
|
||||
'''
|
||||
|
||||
@@ -3690,7 +3690,7 @@ async def ui_publish_run(run_id: str, request: Request, output_name: str = Form(
|
||||
return HTMLResponse(f'''
|
||||
<div class="bg-green-900/50 border border-green-700 text-green-300 px-4 py-3 rounded-lg mb-4">
|
||||
Published to L2 as <strong>{result["asset"]["name"]}</strong>!
|
||||
<a href="{l2_https}/ui/asset/{result["asset"]["name"]}" target="_blank" class="underline">View on L2</a>
|
||||
<a href="{l2_https}/asset/{result["asset"]["name"]}" target="_blank" class="underline">View on L2</a>
|
||||
</div>
|
||||
''')
|
||||
except http_requests.exceptions.HTTPError as e:
|
||||
|
||||
Reference in New Issue
Block a user