Skip to content

Commit

Permalink
Allow .xml extension at the end of live URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkwinkelmann committed Jul 28, 2022
1 parent 937b517 commit 64df9ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extend.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
->js(__DIR__.'/js/dist/admin.js'),

(new Extend\Routes('forum'))
->get('/sitemap-live/{id}', 'fof-sitemap-live', Controllers\MemoryController::class)
// It seems like some search engines add xml to the end of our extension-less URLs. So we'll allow it as well
->get('/sitemap-live/{id:\d+|index}[.xml]', 'fof-sitemap-live', Controllers\MemoryController::class)
->get('/sitemap.xml', 'fof-sitemap-index', Controllers\SitemapController::class),

new Extend\Locales(__DIR__.'/resources/locale'),
Expand Down

0 comments on commit 64df9ca

Please sign in to comment.