Преглед изворни кода

Merge branch 'hotfix/sitemap_error'

Olivier Massot пре 8 месеци
родитељ
комит
5bf3a6feea
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      ot_core/Classes/Middleware/Frontend/OtSitemapProvider.php

+ 1 - 1
ot_core/Classes/Middleware/Frontend/OtSitemapProvider.php

@@ -28,7 +28,7 @@ class OtSitemapProvider implements MiddlewareInterface
 
         $isSitemapRequest = $devMode ?
             preg_match("/[a-z0-9-]+\/sitemap\.xml/", $path) :
-            $path === 'sitemap.xml';
+            $path === '/sitemap.xml';
 
         if ($isSitemapRequest) {
             $path = $devMode ? substr($request->getUri()->getPath(), 0, -strlen('/sitemap.xml')) : '';