Skip to content

Double parameters causes an error #7

Description

@ScholtenAndre

Hi there, thanks for the template, it works like a charm. But yesterday I saw an error, and after some debugging I saw it was caused by a double parameter in the URL. Don't ask, it shouldn't be there, but in this case it happens sometimes ;)

For example:
demo .com / page ?param1=yes &param2=ok &param1=no

The template will break on the toLowerCase() calls, because the input is no longer a string but an object (array with both param1 values). I made a small workaround in the code, but I can imagine other people will also have this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions