Jelajahi Sumber

Fix Redirect page

Visman 5 tahun lalu
induk
melakukan
e3c9da9f77
1 mengubah file dengan 4 tambahan dan 1 penghapusan
  1. 4 1
      app/Models/Pages/Redirect.php

+ 4 - 1
app/Models/Pages/Redirect.php

@@ -80,7 +80,10 @@ class Redirect extends Page
      */
     protected function getHttpHeaders(): array
     {
-        if ('0' == $this->c->config->o_redirect_delay) {
+        if (
+            '0' == $this->c->config->o_redirect_delay
+            || null === $this->nameTpl
+        ) {
             $this->httpStatus = 302;
             $this->nameTpl    = null;