Skip to content

Broken Images with GitHub LFS #407

Description

@joshvickerson

I commonly use Git LFS to store images in a repo. Pages doesn't quite handle this setup correctly. Images fail to load in the UI, because the resulting URL for the src points to the LFS file.

It looks like Pages tries to display images use the following URL structure:

https://raw.githubusercontent.com/{ USERNAME }/{ REPO_NAME }/{ BRANCH_NAME }/{ FILE_PATH }?token=

The raw source on an image in my repo uses the following URL structure:

https://media.githubusercontent.com/media/{ USERNAME }/{ REPO_NAME }/{ BRANCH_NAME }/{ FILE_PATH }?token=

Is it possible for Pages to detect when LFS is in use and adjust image sources accordingly?

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions