Skip to content

[Bug]: Browser page gives incorrect result when given new civitai.red links #16

Description

@preyx

Describe the bug.

The browser tab doesn't give the correct result when given a link beginning with "civitai.red". My initial guess is that it tries to search the link as a string, instead of directly reading the model, since it doesn't contain "civitai.com".

Steps to reproduce the problem.

  1. Go to CivitAI Browser+ plugin, Browser tab
  2. Enter a "civitai.red" model link into the search box. SFW example: https://civitai.red/models/912942/retro-sci-fi-90s-anime-style-animaillustriousxlzimageturbofluxchroma?modelVersionId=1021743
  3. Result is not the linked model, but a different one (I got https://civitai.com/models/2105753?modelVersionId=2382293)

Expected behavior

If you replace ".red" with ".com" in the above example link, the search returns the correct model. The behavior should be the same in both cases.

System info

  • Extension version: Current (published 2025-12-24)
  • OS: Win10
  • SD-WebUI version: WebUI Forge
  • Python: 3.14

Console logs

[no errors]

Additional information

The CivitAI team says that the same API should work for both .com and .red sites (I haven't tested this myself). I imagine the extension code will need to be updated regardless since there are hard-coded occurrences of "civitai.com".

I don't have a strong suggestion how to handle this going forward. Perhaps directing all results and links to .red to cover all models? (.com is now SFW only, .red contains all .com models plus NSFW)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions