rsnext/test/e2e/app-dir/metadata-dynamic-routes
Jiachi Liu 09baadfd70
Remove auto appending xml extension to dynamic sitemap routes (#65507)
### What

Remove the auto appending `.xml` extension to the sitemap routes when
it's a dynamic route.


### Why

Previously we were adding `.xml` to `/[...paths/]sitemap` routes, but
the bad part is when you use it to generate multiple sitemaps with
`generateSitemaps` in format like `/[...paths/]sitemap.xml/[id]`, which
doesn't look good in url format and it can be inferred as xml with
content-type. Hence we don't need to add `.xml` in the url.

Before this change it could also result into the different url between
dev and prod:
dev: `/sitemap.xml/[id]`
prod: `/sitemap/[id].xml` 

Now it's going to be aligned as `/sitemap/[id]`. Users can add extension
flexiblely.

Closes NEXT-3357
2024-05-09 11:05:24 +02:00
..
app feat: add support for localizations in sitemap generator (#53765) 2024-03-20 17:00:20 +00:00
assets Add test for using custom font in metadata image routes (#54274) 2023-08-19 14:29:18 +00:00
index.test.ts Remove auto appending xml extension to dynamic sitemap routes (#65507) 2024-05-09 11:05:24 +02:00
next.config.js Fix trailing slash for canonical url (#62109) 2024-02-15 18:57:15 +01:00