]> git.localhorst.tv Git - alttp.git/commitdiff
fix sitemap
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 6 Apr 2022 07:59:09 +0000 (09:59 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 6 Apr 2022 07:59:43 +0000 (09:59 +0200)
whoops

app/Http/Controllers/SitemapXmlController.php

index 35302c4a326795ce3ceabdc5f91ce6d709e8eb1a..03a41c485e080c3f12351ef06df5ad00920277ed 100644 (file)
@@ -14,7 +14,7 @@ class SitemapXmlController extends Controller
 
                foreach (Tournament::all() as $tournament) {
                        $url = new SitemapUrl();
-                       $url->path = '/tournaments'.$tournament->id;
+                       $url->path = '/tournaments/'.$tournament->id;
                        $url->lastmod = $tournament->updated_at ? $tournament->updated_at : ($tournament->created_at ? $tournament->created_at : now());
                        $url->changefreq = $tournament->locked ? 'never' : 'daily';
                        $url->priority = $tournament->locked ? 0.5 : 1.0;