| @@ -158,11 +158,8 @@ | ||
| 158 | 158 | } elseif ($redirect === 'custom_url') { |
| 159 | 159 | $url = $this->mainConfig->getRedirectCustomUrl(); |
| 160 | 160 | } elseif ($redirect === 'login') { |
| 161 | 161 | $url = $this->getLoginUrl(); |
| 162 | - } elseif ($redirect === 'origin') { | |
| 163 | - $referer = $this->wordpress->getReferer(); | |
| 164 | - $url = $referer !== false ? $referer : $this->wordpress->getHomeUrl('/'); | |
| 165 | 162 | } else { |
| 166 | 163 | $url = $this->wordpress->getHomeUrl('/'); |
| 167 | 164 | } |
| 168 | 165 | |
| @@ -261,9 +258,9 @@ | ||
| 261 | 258 | |
| 262 | 259 | return $headers; |
| 263 | 260 | } |
| 264 | 261 | |
| 265 | - public function getFileUrl(string $url, int|string|null $id): string | |
| 262 | + public function getFileUrl(string $url, int|string $id): string | |
| 266 | 263 | { |
| 267 | 264 | // Nginx always supports real urls so we need the new urls only |
| 268 | 265 | // if we don't use nginx and mod_rewrite is disabled |
| 269 | 266 | if ($this->mainConfig->lockFile() === true |