| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 1 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function oldImagesShowRedirect(Image $image): Response |
||
| 26 | { |
||
| 27 | // We used to use /images/ instead of /image/ but changed it |
||
| 28 | // because that clashed with the dev firewall rule that didn't |
||
| 29 | // do any authentication for /images/ as it's also the |
||
| 30 | // /public/images directory. |
||
| 31 | // TODO: Go through and remove all the existing image links |
||
| 32 | // in the wander and image descriptions that point to |
||
| 33 | // /images/ and then remove this. |
||
| 34 | return $this->redirectToRoute('image_show', ['id' => $image->getId()], 302); |
||
| 35 | } |
||
| 37 |