mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-29 08:58:53 -03:00
fix(recipe): improve Civitai URL generation for missing LoRAs
Use model-versions endpoint (https://civitai.com/model-versions/{id}) which auto-redirects to the correct model page when only versionId is available. This fixes the UX issue where clicking on 'Not in Library' LoRA entries in Recipe Modal would open a search page instead of the actual model page. Changes: - uiHelpers.js: Prioritize versionId over modelId for Civitai URLs - RecipeModal.js: Include versionId in navigation condition checks
This commit is contained in:
@@ -1259,7 +1259,7 @@ class RecipeModal {
|
||||
const versionId = checkpoint.id || checkpoint.modelVersionId;
|
||||
const modelName = checkpoint.name || checkpoint.modelName || checkpoint.file_name;
|
||||
|
||||
if (modelId || modelName) {
|
||||
if (modelId || versionId || modelName) {
|
||||
openCivitaiByMetadata(modelId, versionId, modelName);
|
||||
return;
|
||||
}
|
||||
@@ -1317,7 +1317,7 @@ class RecipeModal {
|
||||
const versionId = lora.id || lora.modelVersionId;
|
||||
const modelName = lora.modelName || lora.name || lora.file_name;
|
||||
|
||||
if (modelId || modelName) {
|
||||
if (modelId || versionId || modelName) {
|
||||
openCivitaiByMetadata(modelId, versionId, modelName);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user