Issue Bug Closed

#93483Redirects: .html page suffix not supported

Christoph Lehmann 02/10/21, 17:45 updated 11/03/22, 13:31

Description

This is my configuration

routeEnhancers:
    PageTypeSuffix:
        type: PageType
        default: .html
        index: index
        map:
            .html: 0

settings:
    redirects:
        autoUpdateSlugs: true
        autoCreateRedirects: true
        redirectTTL: 30
        httpStatusCode: 301
        forceHttps: true
        respectQueryParameters: false
        keepQueryParameters: false

As per default the urls have .html ending. When i rename a page a redirect is created with

Source-Path: /veranstaltungennn

Now i curl this paths

/veranstaltungennn => HTTP 301 (ok)
/veranstaltungennn/ => HTTP 301 (ok)
/veranstaltungennn.html => HTTP 404 (Not found)

The issue is that the old default url is not redirected and results in a 404.

Both working redirects are useless cases because they are not communicated (eg. in search engines) and the only important case (with .html) does not work.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.