浏览代码

Fix Redirect page

Visman 5 年之前
父节点
当前提交
e3c9da9f77
共有 1 个文件被更改,包括 4 次插入1 次删除
  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;