Issue Bug Accepted Orphaned

#105837Sitemap.xml can be called with every URL of one domain

Fabian Schiller 12/17/24, 10:55 updated 07/18/25, 13:46

Description

So I am accusing a strange behavior:
If I add /sitemap.xml to every URL in my domain, i can call the sitemap.xml

test.de/sitemap.xml
test.de/anotherURL/sitemap.xml
test.de/anotherPath/to/anotherURL/sitemap.xml
etc.
These are also no redirects e.g. from test.de/anotherURL/sitemap.xml -> test.de/sitemap.xml

My sitemap configuration looks like this:

routeEnhancers:
  PageTypeSuffix:
    type: PageType
    map:
      sitemap.xml: 1533906435

Am I doing something wrong?
I thought the sitemap.xml should only be displayed at test.de/sitemap.xml

This occurs in v12 and 13

Reviews 4

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". The changes above were merged or abandoned: read them before you start. How to create a patch

Commit message
[BUGFIX] Sitemap.xml can be called with every URL of one domain Resolves: #105837 Releases: main