diff --git a/terragrunt/modules/release-distribution/lambdas/static-router/index.js b/terragrunt/modules/release-distribution/lambdas/static-router/index.js index c8c158077..3bb9c8d1d 100644 --- a/terragrunt/modules/release-distribution/lambdas/static-router/index.js +++ b/terragrunt/modules/release-distribution/lambdas/static-router/index.js @@ -41,7 +41,9 @@ echo " curl https://sh.rustup.rs -sSf | sh" if (request.uri.startsWith('/doc/master')) { // The slice method is used to remove the '/doc/master' prefix from the // URI. 11 is the length of '/doc/master'. - return redirect('https://doc.rust-lang.org/stable' + request.uri.slice(11), callback); + const newUri = 'https://doc.rust-lang.org/stable' + request.uri.slice(11); + const body = "The documentation now lives under doc.rust-lang.org"; + return redirect(newUri, body, callback); } callback(null, request);