You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
Forward all traffic from blog.replit.com/<post>/images/... to blog.replit.com/images/..., this would require 0 editing of old blog posts and is the simplest solution
Real solution
Use absolute links in the images so /images/... instead of images/... in the markdown. This would require editing older posts that use relative links
The text was updated successfully, but these errors were encountered:
Issue
When you visit a blog post for example https://blog.replit.com/rui-eng all the images work fine but adding a
/
to the url https://blog.replit.com/rui-eng/ breaks all the images and now you only see the alt text.Cause
This is caused by a simple fault in how images seem to be linked on the blog. They use relative paths so the image on https://blog.replit.com/rui-eng load just fine to https://blog.replit.com/images/...
but images on https://blog.replit.com/rui-eng/ load to https://blog.replit.com/rui-eng/images/... which doesnt work
Solutions
The lazy one
Forward all traffic from
blog.replit.com/<post>/images/...
toblog.replit.com/images/...
, this would require 0 editing of old blog posts and is the simplest solutionReal solution
Use absolute links in the images so
/images/...
instead ofimages/...
in the markdown. This would require editing older posts that use relative linksThe text was updated successfully, but these errors were encountered: