Skip to content

URL in image src are not rewritten#1

Description

@sim-random

馃悶 Bug Report

Type:

  • Bug
  • Feature
  • Question

Description:

URLs in image src are not rewritten with the onion address, causing images to load from clearnet.

Steps to Reproduce (for bugs):

  1. Install a new wordpress instance with a basic theme (eg. twentytwentyfive) and enable onionify plugin
  2. Setup an onion for the site and configure the mapped address in onionify settings
  3. Create a new post with an image block, from an image uploaded in media
  4. Browse to the newly created post

Expected Behavior:

Images should be loaded from the onion address.
Instead, the src attribute of img tags loads from the clearnet address.

Environment:

  • WordPress Version: 6.9.7
  • PHP Version: php-fpm 8.4.25
  • Onionify Version: 1.0.4
  • Server / Hosting: Self-hosted

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