From b9de1671b890b158941f92ab1c7264cffc6f3479 Mon Sep 17 00:00:00 2001 From: Natanael Rodriguez Ramos Date: Thu, 7 Nov 2024 10:54:46 +0000 Subject: [PATCH 1/3] Fixed blog/tags/audit redirection --- nginx.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nginx.conf b/nginx.conf index 418ff306..b1b183ec 100644 --- a/nginx.conf +++ b/nginx.conf @@ -325,7 +325,9 @@ server { rewrite ^/blog$ /en/blog/ permanent; rewrite ^/blog/$ /en/blog/ permanent; rewrite ^/blog/index.xml /en/blog/index.xml permanent; - + rewrite ^/blog/tags/audit$ /en/blog/tags/audit/ permanent; + rewrite ^/blog/tags/audit$ /en/blog/tags/audit/ permanent; + rewrite ^/data-retention-laws/united-kingdom$ /blog/collection-of-user-data-by-isps-and-telecom-providers-and-sharing-with-third-parties/ permanent; rewrite ^/data-retention-laws/united-states$ /blog/collection-of-user-data-by-isps-and-telecom-providers-and-sharing-with-third-parties/ permanent; rewrite ^/comparison-of-internet-privacy-laws$ /blog/collection-of-user-data-by-isps-and-telecom-providers-and-sharing-with-third-parties/ permanent; From 882ca008a0d11a82e16e4136c8c0f848e3511278 Mon Sep 17 00:00:00 2001 From: Natanael Rodriguez Ramos Date: Thu, 7 Nov 2024 11:02:47 +0000 Subject: [PATCH 2/3] Fixed blog/tags/audit redirection --- nginx.conf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nginx.conf b/nginx.conf index b1b183ec..cf15b052 100644 --- a/nginx.conf +++ b/nginx.conf @@ -325,8 +325,7 @@ server { rewrite ^/blog$ /en/blog/ permanent; rewrite ^/blog/$ /en/blog/ permanent; rewrite ^/blog/index.xml /en/blog/index.xml permanent; - rewrite ^/blog/tags/audit$ /en/blog/tags/audit/ permanent; - rewrite ^/blog/tags/audit$ /en/blog/tags/audit/ permanent; + rewrite ^/blog/tags/audit/(.*)$ /en/blog/tags/audit/$1 permanent; rewrite ^/data-retention-laws/united-kingdom$ /blog/collection-of-user-data-by-isps-and-telecom-providers-and-sharing-with-third-parties/ permanent; rewrite ^/data-retention-laws/united-states$ /blog/collection-of-user-data-by-isps-and-telecom-providers-and-sharing-with-third-parties/ permanent; From a7f8a98459f1409c4aa97b8faee14017f09a14d8 Mon Sep 17 00:00:00 2001 From: Natanael Rodriguez Ramos Date: Thu, 7 Nov 2024 11:36:06 +0000 Subject: [PATCH 3/3] Fixed blog/tags/audit redirection --- nginx.conf | 2 +- src/themes/ivpn-v3/layouts/_default/baseof.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx.conf b/nginx.conf index cf15b052..2f8f0c32 100644 --- a/nginx.conf +++ b/nginx.conf @@ -325,7 +325,7 @@ server { rewrite ^/blog$ /en/blog/ permanent; rewrite ^/blog/$ /en/blog/ permanent; rewrite ^/blog/index.xml /en/blog/index.xml permanent; - rewrite ^/blog/tags/audit/(.*)$ /en/blog/tags/audit/$1 permanent; + rewrite ^/blog/tags/(.*)$ /en/blog/tags/$1 permanent; rewrite ^/data-retention-laws/united-kingdom$ /blog/collection-of-user-data-by-isps-and-telecom-providers-and-sharing-with-third-parties/ permanent; rewrite ^/data-retention-laws/united-states$ /blog/collection-of-user-data-by-isps-and-telecom-providers-and-sharing-with-third-parties/ permanent; diff --git a/src/themes/ivpn-v3/layouts/_default/baseof.html b/src/themes/ivpn-v3/layouts/_default/baseof.html index d4dba417..d9c3d2c8 100644 --- a/src/themes/ivpn-v3/layouts/_default/baseof.html +++ b/src/themes/ivpn-v3/layouts/_default/baseof.html @@ -14,7 +14,7 @@ - {{ if .IsTranslated }} + {{ if and (.IsTranslated) (ne .Title "404 Page not found") }} {{/* Redirect to the browser or localstorage language */}}