From 299e3e6c7c0eb0da332030834f0cacd75c00e52b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Tue, 19 Nov 2019 10:56:04 -0500 Subject: [PATCH] Fix Rediret to current post --- cl-theme/templates/article.html | 6 +++++- content/vendor/form-comments/commentsubmit.php | 7 +++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/cl-theme/templates/article.html b/cl-theme/templates/article.html index 1aa0972..6e51293 100644 --- a/cl-theme/templates/article.html +++ b/cl-theme/templates/article.html @@ -227,7 +227,11 @@
- + {% if RELATIVE_URLS == False %} + + {% else %} + + {% endif %}

placeholder diff --git a/content/vendor/form-comments/commentsubmit.php b/content/vendor/form-comments/commentsubmit.php index c465a98..fa00d29 100644 --- a/content/vendor/form-comments/commentsubmit.php +++ b/content/vendor/form-comments/commentsubmit.php @@ -23,8 +23,8 @@ if(empty($_POST['name']) || !filter_var($_POST['email'], FILTER_VALIDATE_EMAIL) ) { - // header( "Location: ../{$return_url}"); # devel - header( "Location: {$return_url}"); # prod + // Rediret to current post + header( "Location: {$return_url}"); } else { $DATE_FORMAT = "Y-m-d H:i"; @@ -74,8 +74,7 @@ EOT; mail($to,$email_subject,$email_body,$headers); // Rediret to current post - // header("Refresh: 10; URL=../{$return_url}"); # devel - header("Refresh: 10; URL={$return_url}"); # prod + header("Refresh: 10; URL={$return_url}"); printf('Hurra! %s su comentario se envió correctamente, volviendo a la web en 10 segundos...', $name); }