Skip to content

WYSIWYG Image URL is incorrect on the frontend #7297

Closed
@frostshoxx

Description

@frostshoxx

I tried to insert an image to a content of a category. The image is shown on the WYSIWYG editor. However, when I go to the front end, it throws error 404 because the path is wysiwyg/water-safety/someimage.jpg. I ended up have to modify the HTML code to use the full path pub/media/wysiwyg/water-safety/someimage.jpg instead

Preconditions

  1. Magento version 2.1.2
  2. PHP version 7.0.12
  3. MySQL version 5.6.33

Steps to reproduce

  1. Login to the admin dashboard.
  2. Go to categories.
  3. Select on of the subcategories.
  4. Edit the content via WYSIWYG.
  5. Insert image into the content.
  6. Save the category.
  7. Go to the front end and view the category.

Expected result

  1. I expect to see the image to show on the content section of the category.

Actual result

  1. It shows broken link for the image because the path wysiwyg/water-safety/someimage.jpg is not found. I had to manually change it to pub/media/wysiwyg/water-safety/someimage.jpg instead.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions