From 7f2352ca2925a367b91a0cf1a0fd1cc861ab2b39 Mon Sep 17 00:00:00 2001 From: Danny Staple Date: Fri, 9 Aug 2024 17:23:30 +0100 Subject: [PATCH 1/2] Update redirects.md Fit the paths indentation. Add a warning note about the defaults being changed breaking ece-tools URLs scenario. --- help/cloud-guide/routes/redirects.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/help/cloud-guide/routes/redirects.md b/help/cloud-guide/routes/redirects.md index 1c396ccc..df6b3722 100644 --- a/help/cloud-guide/routes/redirects.md +++ b/help/cloud-guide/routes/redirects.md @@ -30,6 +30,8 @@ http://{default}/: to: http://www.{default}/ ``` +Import note: ece-tools may have trouble configuring URL routes in core_config_data tables if the `http://{default}/:` is not of type upstream. + ## Partial-route redirects In the `.magento/routes.yaml` file, you can add partial redirect rules to existing routes based on pattern matching: @@ -90,7 +92,7 @@ Use the following format to configure redirect requests for paths that begin wit http://{default}/: type: upstream redirects: - paths: + paths: "/from": { to: "https://{default}/to", prefix: true } ``` @@ -110,7 +112,7 @@ Use the following format to configure redirect requests which append the path su http://{default}/: type: upstream redirects: - paths: "/from": { to: "https://{default}/to", append_suffix: false } + paths: "/from": { to: "https://{default}/to", append_suffix: false } ``` This configuration works as follows: @@ -128,7 +130,7 @@ http://{default}/: type: upstream redirects: expires: 1d - paths: + paths: "/from": { to: "https://example.com/" } "/here": { to: "https://example.com/there", expires: "2w" } ``` From 9d6972626826d7bf878f273fc1f9b19905608706 Mon Sep 17 00:00:00 2001 From: Danny Staple Date: Mon, 12 Aug 2024 15:56:05 +0100 Subject: [PATCH 2/2] Update help/cloud-guide/routes/redirects.md Co-authored-by: Jared Hoover <98363870+jhadobe@users.noreply.github.com> --- help/cloud-guide/routes/redirects.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/help/cloud-guide/routes/redirects.md b/help/cloud-guide/routes/redirects.md index df6b3722..f0729793 100644 --- a/help/cloud-guide/routes/redirects.md +++ b/help/cloud-guide/routes/redirects.md @@ -30,7 +30,14 @@ http://{default}/: to: http://www.{default}/ ``` -Import note: ece-tools may have trouble configuring URL routes in core_config_data tables if the `http://{default}/:` is not of type upstream. +>[!NOTE] +> +>If the `http://{default}/:` type is not set to `upstream`, `ece-tools` can encounter issues configuring URL routes in `core_config_data` tables. +> +>```yaml +>http://{default}/: +> type: upstream +>``` ## Partial-route redirects