Skip to content

False title-require error #1916

Description

@MikeMcCollister

The following code will produce a <title></title> must not be empty. error.

<!-- this .shtml file takes advantage of Apache server side dynamic content -->

<head>
    <meta charset="UTF-8">
    <title>
        <!--#if expr="${REDIRECT_STATUS} = 400"-->
            Page Name: Bad Request
        <!--#elif expr="${REDIRECT_STATUS} = 403"-->
            Page Name: Forbidden
        <!--#elif expr="${REDIRECT_STATUS} = 404"-->
            Page Name: Resource Not Found
        <!--#else-->
            Page Name: Error <!--#echo var="REDIRECT_STATUS"-->
        <!--#endif-->
    </title>
</head>

Since there is an #else then there will always be a title.

Metadata

Metadata

Assignees

Labels

bugFunctionality that does not work as intended/expected

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions