diff --git a/deploy/edge.js b/deploy/edge.js index 81056f52f..099f5f1ce 100644 --- a/deploy/edge.js +++ b/deploy/edge.js @@ -13,6 +13,7 @@ const latestVersions = { }; const archiveDomain = 'https://archive.docs.influxdata.com'; +const docsDomain = 'https://docs.influxdata.com'; exports.handler = (event, context, callback) => { @@ -173,7 +174,7 @@ exports.handler = (event, context, callback) => { /////////////////////// END PRODUCT-SPECIFIC REDIRECTS /////////////////////// // Redirect to the a trailing slash - permanentRedirect(!request.uri.endsWith('/'), request.uri + '/'); + permanentRedirect(!request.uri.endsWith('/'), `${docsDomain}${request.uri}/`); // Use index.html if the path doesn't have an extension // or if the version number is parsed as an extension.