Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Broken images #19

Closed
PotentialStyx opened this issue Dec 23, 2021 · 3 comments
Closed

Broken images #19

PotentialStyx opened this issue Dec 23, 2021 · 3 comments

Comments

@PotentialStyx
Copy link

PotentialStyx commented Dec 23, 2021

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/... 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

@PotentialStyx
Copy link
Author

@piemadd btw

@piemadd
Copy link

piemadd commented Dec 23, 2021

bruh

@piemadd
Copy link

piemadd commented Dec 23, 2021

fixed (i think)

@piemadd piemadd closed this as completed Dec 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants