From 4a5230e6bc028d54c102e018ec37ebf1a0d49e41 Mon Sep 17 00:00:00 2001 From: Bartlomiej Plotka Date: Wed, 12 Nov 2025 14:02:09 +0100 Subject: [PATCH] Redirect top level spec/ dir to the latest version (#2773) This is to allow redirect of openmetrics.io domain to https://prometheus.io/docs/specs/om/ on CNCF side and then be able to dynamically switch latest on our side. Signed-off-by: bwplotka --- public/_redirects | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/_redirects b/public/_redirects index da1f1c83..592fdb30 100644 --- a/public/_redirects +++ b/public/_redirects @@ -26,6 +26,11 @@ /docs/specs/remote_write_spec /docs/specs/prw/remote_write_spec /docs/specs/remote_write_spec_2_0 /docs/specs/prw/remote_write_spec_2_0 +# Per spec sub dirs should point the currently "latest" version. +# E.g. https://openmetrics.io redirects to https://prometheus.io/docs/specs/om +/docs/specs/om /docs/specs/om/open_metrics_spec +/docs/specs/prw /docs/specs/prw/remote_write_spec_2_0 + # Redirect for HTTP SD docs, which briefly lived in the wrong category / repo. /docs/instrumenting/http_sd/ /docs/prometheus/latest/http_sd/