fix: incorrect query arg in hub link
This commit is contained in:
@@ -1119,7 +1119,7 @@ pub async fn pick_hub_script_by_path(
|
||||
) -> impl IntoResponse {
|
||||
let path_str = path.to_path();
|
||||
|
||||
// Extract version_id from path (format: {version_id}/{app}/{summary})
|
||||
// Extract version_id from path (format: {hub}/{version_id}/{summary})
|
||||
let version_id = path_str.split('/').nth(1).unwrap_or("");
|
||||
|
||||
let hub_base_url = HUB_BASE_URL.read().await.clone();
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
? DEFAULT_HUB_BASE_URL
|
||||
: $hubBaseUrlStore
|
||||
window.open(
|
||||
`${targetHubBaseUrl}/from_version/${hubVersionId}?report-issue=${hubVersionId}`,
|
||||
`${targetHubBaseUrl}/from_version/${hubVersionId}?report_issue=${hubVersionId}`,
|
||||
'_blank'
|
||||
)
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user