Skip to content

URL escaping in API links not consistent, broken. #3

Description

@jthomale

Example: http://libuiapp01.library.unt.edu/catalog/api/v1/marc/?035a[matches]=^\(OCoLC

"_links": {
    "self": {
        "href": "http://libuiapp01.library.unt.edu/catalog/api/v1/marc/?035a[matches]=%5E%5C(OCoLC"
    }, 
    "next": {
        "href": "http://libuiapp01.library.unt.edu/catalog/api/v1/marc/?035a[matches]=^\\(OCoLC&offset=20"
    }
}, 

The _links["self"]["href"] URL converts characters in the query string to URL entities, while the _links["self"]["next"] URL does not. Additionally, "next" is escaping the backslash in the matches query criteria, while "self" is not, which apparently causes the "next" link to throw an error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions