Skip to content

Fix broken demo images — source.unsplash.com/random is deprecated (503)#30

Closed
kiluazen wants to merge 1 commit into
andrewh0:mainfrom
kiluazen:fix/unsplash-random-deprecated
Closed

Fix broken demo images — source.unsplash.com/random is deprecated (503)#30
kiluazen wants to merge 1 commit into
andrewh0:mainfrom
kiluazen:fix/unsplash-random-deprecated

Conversation

@kiluazen

Copy link
Copy Markdown

Noticed the two <img> tags in demo.html (L187, L196) still hotlink https://source.unsplash.com/random/400x300. Unsplash deprecated the source.unsplash.com/random endpoint in mid-2024 and the endpoint now 503s, so anyone loading the demo currently sees broken image tiles where the Media section's examples are supposed to render.

This PR swaps both to specific, permanent images.unsplash.com photo URLs pinned to 400×300. I also updated alt text to describe each photo instead of saying "random placeholder image."

Zero JS/CSS changes. Minimal two-line diff.

For context on the endpoint change: https://help.unsplash.com/en/articles/8656599-unsplash-source-is-deprecated

If you'd rather ship local assets instead of hotlinking, I wrote a small CLI for exactly that: tteguv tool install tteg; tteg save "office" ./demo/img --width 400 --height 300. Repo: https://github.com/kiluazen/tteg. Happy to push a follow-up PR that swaps to local files if you prefer.

Thanks for okcss!

The source.unsplash.com/random endpoint was deprecated by Unsplash in
mid-2024 and now returns 503, so the two <img> tags in demo.html render
broken on any visit. Replace both with specific images.unsplash.com
photo URLs pinned with fixed dimensions.
@andrewh0 andrewh0 mentioned this pull request Apr 22, 2026
4 tasks
@andrewh0

Copy link
Copy Markdown
Owner

Fixed with #31. I appreciate you flagging this, and hope you enjoy okcss!

@andrewh0 andrewh0 closed this Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants