Skip to content

Hardcoded cover image path #9

Closed

Description

@Amolith

From #2 (comment):

were you able to use images in the web view? According to the docs, I just need to place an image with the same name as the recipe in the directory of the recipe, but nothing is showing.

@juliangaal From my testing, it somewhat works. This is my directory layout; if I understand the docs correctly, the bottom image (without .2) should be displayed as the recipe cover and the other should be displayed somewhere around step 3.

image

The cover image works fine but the one that's supposed to accompany step 3 does not show up. I assume it's just not implemented in CookCLI yet.

images

That's all with the local server though. The one on my VPS doesn't show images at all, because it's requesting them from a hardcoded localhost URI instead of a relative path.

hardcoded-uri.mp4

I imagine the fix is simple enough that I could open a PR without knowing Swift at all; I can take a look at it in a bit if @dubadub is alright with that 😄

Activity

  1. juliangaal commented on Oct 27, 2021

    @juliangaal

    Probably due to this, but I don't really understand the Svelte/js enough

  2. Amolith commented on Oct 28, 2021

    @Amolith
    Author

    Yep, that's the simple fix I expected. Just removing http://localhost:9080 and leaving it as / should be enough to fix the issue.

  3. dubadub commented on Oct 28, 2021

    @dubadub
    Member

    Thanks for reporting the fix for the issue 🕵️. I released the updated binaries.

  4. added
    area: server
    and removed on Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: server

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions