mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: Return a 404 when a sitemap request doesn't have a format (#16506)
This commit is contained in:
parent
90f4e0230e
commit
48417b59d6
2 changed files with 7 additions and 1 deletions
|
@ -26,7 +26,7 @@ Discourse::Application.routes.draw do
|
|||
post "webhooks/sendgrid" => "webhooks#sendgrid"
|
||||
post "webhooks/sparkpost" => "webhooks#sparkpost"
|
||||
|
||||
scope path: nil, constraints: { format: :xml } do
|
||||
scope path: nil, format: true, constraints: { format: :xml } do
|
||||
resources :sitemap, only: [:index]
|
||||
get "/sitemap_:page" => "sitemap#page", page: /[1-9][0-9]*/
|
||||
get "/sitemap_recent" => "sitemap#recent"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue