ResearchHub / issues

File an issue or request a feature
1 stars 0 forks source link

Notebook contains broken images #116

Open Dolosus19 opened 2 weeks ago

Dolosus19 commented 2 weeks ago

Describe the bug Some old notebook posts have broken media links on both the notebook page and the published page

To Reproduce Steps to reproduce the behavior:

  1. Go to 'https://www.researchhub.com/post/2011/plant-growth-buddhist-mantra-summary'

Expected behavior Allow for media input into notebook entries to be recovered and showable.

Screenshots image

Desktop (please complete the following information):

gzurowski commented 2 weeks ago

The problem with these posts is that images are referenced by a URL where the host no longer exists, e.g.:

<img src="https://d2ogkcqdn9wsvr.cloudfront.net/comment_files/png/86828ca427131ae921c311aef681d9bd.png">

Instead of https://d2ogkcqdn9wsvr.cloudfront.net/comment_files/png/86828ca427131ae921c311aef681d9bd.png, the URL should be https://storage.prod.researchhub.com/comment_files/png/86828ca427131ae921c311aef681d9bd.png.

The URLs are baked into the post documents and need to get updated in order to fix this.