From 1e505503b4c9b5a266710fb443e55923ce83e660 Mon Sep 17 00:00:00 2001 From: Philip Mallegol-Hansen Date: Sun, 16 Aug 2026 22:49:36 +0000 Subject: [PATCH] Redirects image urls In Evan's book the example URL to use is docs/images/logo/rbg/knative-logo-rgb.png, however the file is actually served at /images/* without the docs prefix. Since the book is already out there, I figured the neatest solution to the problem I ran into when following his example code, is to make that URL valid. --- netlify.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/netlify.toml b/netlify.toml index c6758b45f78..0ef03d24b75 100644 --- a/netlify.toml +++ b/netlify.toml @@ -40,3 +40,7 @@ package = "@netlify/plugin-sitemap" to = "https://github.com/knative/docs/blob/main/contribute-to-docs/README.md" status = 301 +[[redirects]] + from = "/docs/images/*" + to = "/images/:splat" + status = 301