Skip to content

Languages with hyphenated names can't be retrieved by name #1291

@desophos

Description

@desophos

Languages with a name key whose value contains a hyphen return a 404 Not Found response. This can be observed with language 1, ja-Hrkt, for example. I've checked other languages as well and tried variations on the name with no success.

Current behavior: the URL https://pokeapi.co/api/v2/language/ja-Hrkt returns a payload of "Not Found", status 404

Expected behavior: the response is the same as https://pokeapi.co/api/v2/language/1

Steps to Reproduce:

Navigate to https://pokeapi.co/api/v2/language/ja-Hrkt.

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